Prepare your Laravel project

Nothing special is required to deploy to SiteGround. You should be able to publish your locally developed project directly into SiteGround Shared servers.

Version Control

This guide relies on deploying from a GIT flavoured repository (Gitlab / Github / BitBucket) so make sure you are committing your source code when it is ready to be deployed. In the deployment script you will specify the name of the branch you wish to deploy from so you could deploy from main/master or deploy for instance.

Your .env file should NOT be part of your committed code.

Last updated