🕺
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

On-going deployments

The great benefit of this setup is the reliability it brings to the whole deployment process

  1. Develop and test locally

  2. Commit to your code repository

  3. SSH into the server

  4. Change to the project folder

  5. Run ./build.sh

Your new code will be deployed in under 10 seconds, with no downtime for the users

If you need to run any artisan commands, remember to first switch to the Live folder and run php81 artisan(or whatever php value is applicable to your project)

PreviousRunning a Queue WorkerNextDeploy from local development

Last updated 2 years ago