Deploy Laravel for GitLab CI/CD
View on GitHub

Step 8: Webroot, queue, and cron

You should make sure your webroot, queue workers, and cronjob are pointing to the "current" directory. You can make these changes after you've run a deployment using this script.

If your "base_directory" is /var/www/project, then:

  1. Your Apache2/Nginx root directory should point to /var/www/project/current/public
  2. Your queue workers should point to /var/www/project/current/artisan
  3. Your cronjob should point to /var/www/project/current/artisan