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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners