🕺
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
  • Discuss these articles on GitHub
  • Why shared hosting?
  • Contents

Some hints and best practices for deploying laravel on shared hosts

Best practices for shared hosting Laravel

NextIntroduction

Last updated 2 years ago

Discuss these articles on GitHub

The following articles assist with the deployment of a Laravel project on so called shared hosting accounts. Many of the techniques are actually from VPS deployments so starting with shared hosting can put knowledge in place for when you need to deploy your growing project to servers with dedicated resources.

Why shared hosting?

As a solo developer or a small team without DevOps resources, shared hosting can play a useful part in your server resource pool. Often you can deploy many sites under a single monthly fee (rather than per droplet) meaning you can try out ideas without spinning up additional costs. Use cases include;

  • Staging sites

  • Proof of Concept (POC) sites

  • Portfolio sites with anticipated low traffic

  • Learning resources

  • Testing public endpoints for webhooks and hosted APIs

In addition, a shared hosting account can come with resources such as domain name registration, DNS management, and Email accounts and forwarders. You don't get any of these when purchasing a VPS. You can use an email account provided by the shared host to send email from your Laravel application rather than trying to use a 'personal' account.

Contents

SiteGround Shared Hosting
Discussions · snapey/LaravelSharedHostingGitHub
Discuss these pages on Github
Logo