🕺
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

Create a .env file

PreviousThe master folderNextConnect your server to git

Last updated 2 years ago

This will be the master .env file for your project and is copied into each deployment.

It should be placed in /www/example.org/master

You can either create the .env within the SSH session using a tool like nano or use the editor built into the SiteGround site tools.

In the .env file, remember to set your file up for production, add your database and mail credentials, turn off debug mode although if you are having problems with deployment you may choose to leave debug in place for a while. DO NOT FORGET.

https://laravel.com/docs/9.x/deployment#debug-mode