Frameworks/Deploy Laravel on your own server
Laravel

Deploy Laravel on your own server

Push a Laravel app and Railpack builds it on FrankenPHP, runs your migrations and serves it, on a server you own.

From repo to live in three steps

  1. 01Connect the repository that holds your Laravel app.
  2. 02Railpack recognises the Laravel project and builds it into an image.
  3. 03Push to the branch: every push builds and rolls out a new version.

What Deplo sets up

  • Recognised from the artisan file at the root.
  • Composer dependencies installed, and config, event, route and view caches built at build time.
  • A package.json gets its frontend built too, Vite included.
  • Migrations run when the app starts; RAILPACK_SKIP_MIGRATIONS turns that off.

Deplo builds with Railpack by default, so a Laravel project needs no Dockerfile to get started.

Laravel on Deplo

Short answers to what comes up before moving a Laravel app onto your own server.

The one composer.json asks for, 8.4 when it says nothing. Versions from 8.2 on are supported.

Yes: every ext- entry in composer.json, plus any you list in RAILPACK_PHP_EXTENSIONS.

Yes. Managed databases live in the same environment and reach the app over the internal network.

Ten minutes from now,
it's live.

Answer three questions and pick a host, or install Deplo on a server you already have. It's free, and leaving is as easy as arriving. What you do with the money you save is your business.