🕺
LaravelSharedHosting
  • Some hints and best practices for deploying laravel on shared hosts
  • SiteGround Shared Hosting
    • Introduction
    • Prepare your Laravel project
    • Add a hosting account
    • SSH access to SiteGround space
    • Setup a mysql database
    • Adding a mail account
    • The master folder
    • Create a .env file
    • Connect your server to git
    • Create a deployment script
    • Link this site into your webserver
    • SSL Certificate
    • Setting up a CRON job
    • Running a Queue Worker
    • On-going deployments
    • Deploy from local development
    • Deploy using GitHub Actions
Powered by GitBook
On this page
  1. SiteGround Shared Hosting

Setting up a CRON job

PreviousSSL CertificateNextRunning a Queue Worker

Last updated 2 years ago

You will most likely need the scheduler running in order to perform your regular tasks.

Setting up CRON with Siteground is quite easy

From the Site Tools / Devs section, add a new cronjob as below

cd ~/www/example.org/Live && php81 artisan schedule:run >> /dev/null 2>&1

Set this with a custom pattern of five start separated by spaces. This equates to every minute.

substitute example.org with your domain name