deploy.sh is a Bash script that automatically performs the necessary steps to run a Laravel project after pulling the latest changes from Git.
-
Copy route file contents
Copy the contents of the provided
web.phpfile into your Laravel project'sroutes/web.php. -
Copy custom Artisan commands
Copy all files inside the
commands-laravelfolder to your Laravel project'sapp/Console/Commandsdirectory. -
Copy deployment and process manager config
Copy both
deploy-gitandsupervisorfolders into the root directory of your Laravel project. -
Run deployment manually
To manually deploy the project, run the following Artisan command:
php artisan deploy:prod