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 by DevDojo 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.

Become a contributor for community

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

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.