LaraSail icon

LaraSail

Visit site

LaraSail is a CLI tool for Laravel to help you automate your DigitalOcean Droplets set up for Laravel Applications.

LaraSail is a CLI tool for Laravel to help you automate your DigitalOcean Droplets set up for Laravel Applications.

The initial server setup done by LaraSail include:

  • Installing all of the necessary updates
  • Adding a non-root user
  • Enabling ufw
  • Installing and configuring LEMP for Laravel
  • Installing composer
  • Installing the Laravel Command
  • Installing certbot

LaraSail is designed to work best on fresh new Ubuntu Droplets.

Prerequisites

In order to be able to use LaraSail you need a new DigitalOcean Ubuntu Droplet.

Installation

SSH into your server and run the following command:

  1. curl -sL https://github.com/thedevdojo/larasail/archive/master.tar.gz | tar xz && source larasail-master/install

Initial server setup

Once you install LaraSail, in order to do all of the initial server set up you need to run the following command:

  1. larasail setup

You can make sure it’s installed by running:

  1. larasail -h

Creating new Laravel project

In order to create a new Laravel project just run the following command:

  1. cd /var/www && composer create-project laravel/laravel mywebsite

Once you have your Laravel projected installed, LaraSail lets you also automate your Nginx server block creation.

Creating new Nginx server block

LaraSail also allows you to automate the set up of new Nginx Server Blocks in case that you need to host multiple Laravel applications on the same Droplet.

To create a new Nginx server block run:

  1. larasail host mywebsite.com /var/www/mywebsite

You can find a video demo on how to install and use LaraSail here:

Was this helpful?
 
Leave a comment


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Publish your Tool on Community

Have you created an Integration, API Wrapper, Service, or other Tool that helps developers build on DigitalOcean? Help users find it by listing it in Community Tools.

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel