Skip to content

Instantly share code, notes, and snippets.

@IamSwap
Created January 9, 2019 08:33
Show Gist options
  • Save IamSwap/d2311612e02831983735c964d3a78daa to your computer and use it in GitHub Desktop.
Save IamSwap/d2311612e02831983735c964d3a78daa to your computer and use it in GitHub Desktop.
Runcloud Laravel deployment script
git pull origin master
composer install --no-dev
php artisan migrate --force
@azazqadir
Copy link

The platform I am using to host Laravel doesn't require any such script for hosting. This makes me wonder why you would need a script to do it on Runcloud?

@khoipro
Copy link

khoipro commented Mar 3, 2022

This one looks better: https://blog.runcloud.io/laravel-with-git-deployment-the-right-way/

git merge
composer dump-autoload -o
composer install
php artisan migrate --force
php artisan clear-compiled
php artisan view:clear
php artisan config:clear
php artisan optimize
composer dump-autoload -o
php artisan queue:restart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment