In this post, I will show you how to set up auto for your Laravel application on Cpanel. I want to assume you already have your Laravel app deployed on CPanel, your version control provider(Github, Gitlab or Bitbucket) connected to the Cpanel server. If you haven't, please check out my prevous posts below: https://stephenjude.me/articles/run-composer-php-commands-on-cpanel-terminal-using-any-php-cli-version-installed-centos-cloudlinux&& https://stephenjude.me/articles/how-to-connect-cpanel-to-github-gitlab-and-bitbucket-and-deploy-private-repositories https://stephenjude.me/articles/how-to-deploy-a-laravel-project-on-linux-shared-hosting-in-5-minutes We need to create deploy.sh bash script inside the public_html directory of our CPanel and paste the code snippet below.

# Clear caches php artisan cache:clear
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners