{
  "manifest_version": "1",
  "slug": "laravel-go",
  "title": "Laravel Go",
  "headline": "Deploy a Laravel Go app",
  "description": "Deploy a Laravel Go app to an exe.dev VM: git push builds the binary and Vite assets, PostgreSQL, a queue worker, the scheduler, nightly backups.",
  "category": "frameworks",
  "tags": [
    "laravel go",
    "laravel for go",
    "go",
    "golang",
    "inertia",
    "deploy laravel go",
    "git push deploy",
    "postgresql",
    "systemd",
    "queues"
  ],
  "url": "https://exe.dev/deploy/laravel-go",
  "markdown_url": "https://exe.dev/deploy/laravel-go.md",
  "upstream": {
    "website": "https://laravel.com/go",
    "source": "https://github.com/laravel/go",
    "docs": "https://laravel.com/go/docs/deployment",
    "license": "MIT"
  },
  "example_vm_name": "my-laravel-go",
  "time": "10 minutes",
  "stack": [
    {
      "name": "Your app",
      "detail": "One Go binary as app.service, on 127.0.0.1:8000",
      "port": 8000,
      "data": "~/app → the current release in ~/releases"
    },
    {
      "name": "git push deploys",
      "detail": "A pre-receive hook builds with npm and go build, migrates, switches, checks /up",
      "data": "~/app.git"
    },
    {
      "name": "Queue worker and scheduler",
      "detail": "queue:work as app-worker.service; schedule:run every minute by app-schedule.timer"
    },
    {
      "name": "PostgreSQL 16",
      "detail": "Ubuntu's package; the app signs in over its socket, no password",
      "data": "/var/lib/postgresql"
    },
    {
      "name": "Settings, uploads and backups",
      "detail": "~/app.env, ~/data/storage; app-backup.timer nightly, keeps 14",
      "data": "~/backups"
    }
  ],
  "access": [
    {
      "url": "https://my-laravel-go.exe.xyz/",
      "who": "private",
      "what": "Your app, until you make it public"
    },
    {
      "url": "ssh my-laravel-go.exe.xyz",
      "who": "private",
      "what": "git push to deploy; shell and logs"
    }
  ],
  "inputs": [
    {
      "name": "REPO",
      "description": "the GitHub repository to deploy, as owner/name or a URL, or `new` to start a fresh Laravel Go app"
    }
  ],
  "delivers": [
    "Go 1.27 (the VM's), Node.js 24 and PostgreSQL 16 installed, with an app database the exedev user reaches over its socket.",
    "A ~/app.git whose pre-receive hook builds each push (npm run build, go build), migrates, switches releases and checks /up; a failed deploy rejects the push and leaves the running release alone.",
    "The app running as app.service on 127.0.0.1:8000, the queue worker as app-worker.service and the scheduler as app-schedule.timer, all enabled to come back after a reboot.",
    "Settings in ~/app.env (mode 600) with a generated APP_KEY, and uploads in ~/data/storage.",
    "A nightly backup by app-backup.timer, with the first backup opened and checked.",
    "With REPO=new, a fresh Laravel Go app that trusts exe.dev's proxy and greets you by your exe.dev email at /hello."
  ],
  "owner_runs_after": [
    "git clone -o exe my-laravel-go.exe.xyz:app.git    # if you started fresh",
    "git remote add exe my-laravel-go.exe.xyz:app.git  # or, in your own app's checkout"
  ],
  "deployable": true,
  "deploy": {
    "new_vm_url": "https://exe.dev/new?prompt=REPO%3D%3Cfill-this-in%3E%0A%0ASet%20up%20Laravel%20Go%20on%20this%20VM%20by%20following%20the%20exe.dev%20recipe%20at%20https%3A%2F%2Fexe.dev%2Fdeploy%2Flaravel-go.md%3Fvia%3Ddeploy%20from%20top%20to%20bottom.%0A%0AThe%20values%20at%20the%20top%20of%20this%20message%20are%20mine%3A%0A-%20REPO%3A%20the%20GitHub%20repository%20to%20deploy%2C%20as%20owner%2Fname%20or%20a%20URL%2C%20or%20%60new%60%20to%20start%20a%20fresh%20Laravel%20Go%20app%0AAsk%20me%20for%20any%20that%20still%20say%20%3Cfill-this-in%3E%20before%20you%20need%20them.%0A%0AThe%20recipe%27s%20example%20VM%20name%20is%20my-laravel-go.%20This%20VM%27s%20name%20is%20the%20output%20of%20%60hostname%60%3A%20use%20it%20wherever%20the%20recipe%20writes%20my-laravel-go.%20Skip%20the%20step%20that%20creates%20the%20VM%3B%20you%20are%20on%20it.%0A%0AYou%20are%20done%20when%20all%20of%20these%20are%20true.%20Check%20each%20one%20yourself%3A%0A-%20Go%201.27%20%28the%20VM%27s%29%2C%20Node.js%2024%20and%20PostgreSQL%2016%20installed%2C%20with%20an%20app%20database%20the%20exedev%20user%20reaches%20over%20its%20socket.%0A-%20A%20~%2Fapp.git%20whose%20pre-receive%20hook%20builds%20each%20push%20%28npm%20run%20build%2C%20go%20build%29%2C%20migrates%2C%20switches%20releases%20and%20checks%20%2Fup%3B%20a%20failed%20deploy%20rejects%20the%20push%20and%20leaves%20the%20running%20release%20alone.%0A-%20The%20app%20running%20as%20app.service%20on%20127.0.0.1%3A8000%2C%20the%20queue%20worker%20as%20app-worker.service%20and%20the%20scheduler%20as%20app-schedule.timer%2C%20all%20enabled%20to%20come%20back%20after%20a%20reboot.%0A-%20Settings%20in%20~%2Fapp.env%20%28mode%20600%29%20with%20a%20generated%20APP_KEY%2C%20and%20uploads%20in%20~%2Fdata%2Fstorage.%0A-%20A%20nightly%20backup%20by%20app-backup.timer%2C%20with%20the%20first%20backup%20opened%20and%20checked.%0A-%20With%20REPO%3Dnew%2C%20a%20fresh%20Laravel%20Go%20app%20that%20trusts%20exe.dev%27s%20proxy%20and%20greets%20you%20by%20your%20exe.dev%20email%20at%20%2Fhello.%0A%0ARead%20the%20whole%20recipe%2C%20including%20the%20closed%20details%2C%20and%20follow%20%22Set%20up%0Aby%20hand%22%20in%20order%2C%20skipping%20VM%20creation.%20REPO%3Dnew%20takes%20%22Start%20a%20new%0Aapp%22%3B%20anything%20else%20takes%20%22Bring%20your%20app%22%20%28turn%20URLs%20into%20owner%2Fname%29.%0AIf%20cloning%20fails%2C%20the%20repository%20is%20private%3A%20give%20the%20owner%20the%20%60ssh%0Aexe.dev%20integrations%20add%20github%60%20command%20from%20that%20step%2C%20with%20this%20VM%27s%0Aname%20and%20the%20repository%2C%20and%20wait%20for%20them.%0ANever%20commit%20to%20the%20owner%27s%20code%2C%20on%20GitHub%20or%20in%20~%2Fapp.git.%20If%20their%0Aapp%20doesn%27t%20trust%20exe.dev%27s%20proxy%20yet%2C%20tell%20them%20about%20the%20one%20line%20in%0A%22Behind%20exe.dev%27s%20proxy%22%20instead.%20Generate%20secrets%3B%20ask%20the%20owner%20for%0Akeys%20to%20outside%20services%2C%20and%20never%20invent%20values.%20If%20a%20deploy%20fails%2C%0Aread%20its%20output%2C%20fix%20what%20you%20can%20on%20the%20VM%2C%20and%20redeploy%20with%0A%60~%2Fapp.git%2Fhooks%2Fpre-receive%20%3C%2Fdev%2Fnull%60.%20Use%20~%2Fbin%2Fpre-receive%20and%0A~%2Fbin%2Fapp-backup%20as%20published%3B%20if%20you%20think%20one%20is%20wrong%2C%20tell%20the%0Aowner%20rather%20than%20editing%20it.%0ADon%27t%20run%20Restore%20or%20Update%2C%20don%27t%20reboot%2C%20and%20leave%20the%20VM%20private.%0AFor%20a%20new%20app%2C%20the%20URLs%20to%20open%20include%20%2Fhello.%0A%0AFinish%20with%20the%20URLs%20I%20should%20open%20and%20these%20commands%2C%20which%20only%20I%20can%20run%2C%20from%20my%20own%20computer%20%28with%20this%20VM%27s%20name%20in%20them%29%3A%0A%20%20git%20clone%20-o%20exe%20my-laravel-go.exe.xyz%3Aapp.git%20%20%20%20%23%20if%20you%20started%20fresh%0A%20%20git%20remote%20add%20exe%20my-laravel-go.exe.xyz%3Aapp.git%20%20%23%20or%2C%20in%20your%20own%20app%27s%20checkout%0A",
    "terminal": "curl -fsSL https://exe.dev/deploy/laravel-go/prompt.txt | ssh exe.dev new --prompt=/dev/stdin",
    "prompt": "REPO=\u003cfill-this-in\u003e\n\nSet up Laravel Go on this VM by following the exe.dev recipe at https://exe.dev/deploy/laravel-go.md?via=deploy from top to bottom.\n\nThe values at the top of this message are mine:\n- REPO: the GitHub repository to deploy, as owner/name or a URL, or `new` to start a fresh Laravel Go app\nAsk me for any that still say \u003cfill-this-in\u003e before you need them.\n\nThe recipe's example VM name is my-laravel-go. This VM's name is the output of `hostname`: use it wherever the recipe writes my-laravel-go. Skip the step that creates the VM; you are on it.\n\nYou are done when all of these are true. Check each one yourself:\n- Go 1.27 (the VM's), Node.js 24 and PostgreSQL 16 installed, with an app database the exedev user reaches over its socket.\n- A ~/app.git whose pre-receive hook builds each push (npm run build, go build), migrates, switches releases and checks /up; a failed deploy rejects the push and leaves the running release alone.\n- The app running as app.service on 127.0.0.1:8000, the queue worker as app-worker.service and the scheduler as app-schedule.timer, all enabled to come back after a reboot.\n- Settings in ~/app.env (mode 600) with a generated APP_KEY, and uploads in ~/data/storage.\n- A nightly backup by app-backup.timer, with the first backup opened and checked.\n- With REPO=new, a fresh Laravel Go app that trusts exe.dev's proxy and greets you by your exe.dev email at /hello.\n\nRead the whole recipe, including the closed details, and follow \"Set up\nby hand\" in order, skipping VM creation. REPO=new takes \"Start a new\napp\"; anything else takes \"Bring your app\" (turn URLs into owner/name).\nIf cloning fails, the repository is private: give the owner the `ssh\nexe.dev integrations add github` command from that step, with this VM's\nname and the repository, and wait for them.\nNever commit to the owner's code, on GitHub or in ~/app.git. If their\napp doesn't trust exe.dev's proxy yet, tell them about the one line in\n\"Behind exe.dev's proxy\" instead. Generate secrets; ask the owner for\nkeys to outside services, and never invent values. If a deploy fails,\nread its output, fix what you can on the VM, and redeploy with\n`~/app.git/hooks/pre-receive \u003c/dev/null`. Use ~/bin/pre-receive and\n~/bin/app-backup as published; if you think one is wrong, tell the\nowner rather than editing it.\nDon't run Restore or Update, don't reboot, and leave the VM private.\nFor a new app, the URLs to open include /hello.\n\nFinish with the URLs I should open and these commands, which only I can run, from my own computer (with this VM's name in them):\n  git clone -o exe my-laravel-go.exe.xyz:app.git    # if you started fresh\n  git remote add exe my-laravel-go.exe.xyz:app.git  # or, in your own app's checkout\n",
    "prompt_url": "https://exe.dev/deploy/laravel-go/prompt.txt"
  },
  "published": "2026-12-02",
  "updated": "2026-12-02",
  "verified": "2026-12-02",
  "related": [
    "laravel",
    "laravel-rust",
    "go",
    "postgres",
    "rails",
    "django"
  ],
  "alternatives": [
    "Laravel Cloud",
    "Fly.io",
    "Railway"
  ],
  "files": [
    "https://exe.dev/deploy/laravel-go/app-backup",
    "https://exe.dev/deploy/laravel-go/pre-receive"
  ]
}
