Deplomo
Sign in
Laravel and PHP deployment guide

Deploy Laravel and PHP on Deplomo

Deploy Laravel and PHP on Deplomo from Git or the CLI. Set the build command, configure Artisan, environment variables, a MySQL database, and a domain. Deploy your Laravel project without cPanel.

Short answer

TheDeploy Laravel and Artisan commands run on Deplomo without traditional control panels. Connect Git to install Composer dependencies, then connect to MySQL database hosting For package information, see the pricing Buy Laravel hosting page or the deployment Deployment guide guide.

Last reviewed:6 September 2026

Prepare your project for Deploy Laravel

Add the project dependency files, composer.json and composer.lock to your Git repository. Default build and run commands for this stack:

# Build command
composer install --no-dev --optimize-autoloader && php artisan config:cache

# Run command
php artisan serve --host=0.0.0.0 --port=$PORT

Set APP_KEY, APP_ENV, APP_URL and database connection details as environment variables.

Automatic deployment directly from the Git repository

  1. Create a new project and environment in the Deplomo user panel.
  2. Connect the service to the GitHub or GitLab repository and the desired branch.
  3. Set the build and run commands to match your project.
  4. Set the required environment variables, then deploy.
  5. Connect your custom domain in the Domains section and use free SSL.

Deploy a local folder with Deplomo CLI

curl -fsSL https://get.deplomo.com/install.sh | sh
deplomo login
cd your-project
deplomo deploy
deplomo logs

Use the Deplomo CLI to deploy local code directly without pushing it to Git.

On Windows (PowerShell), use irm https://get.deplomo.com/install.ps1 | iex instead of the first command.

Production tips for Laravel and PHP

  • Review migrations before running them, and take a backup first.
  • Run the queue worker and scheduler separately as services or cron jobs.
  • Use persistent storage or MinIO for uploaded files.
  • Check the health check and startup time before routing live traffic.
  • Store persistent data and user files on persistent disks or cloud storage.

Frequently asked questions

How do I deploy Laravel and run migrations on Deplomo?

For Laravel deployments, add php artisan migrate --force to the build command to run database migrations when you deploy a new version.

Can I host a Laravel project without cPanel?

Yes. Deploy a Laravel project to Deplomo directly from Git or the CLI, without a traditional control panel.

How do I run Laravel and PHP queue workers?

For Laravel and other PHP apps, create a separate worker service and run php artisan queue:work to process background jobs.