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:
ufw
certbot
LaraSail is designed to work best on fresh new Ubuntu Droplets.
In order to be able to use LaraSail you need a new DigitalOcean Ubuntu Droplet.
SSH into your server and run the following command:
- curl -sL https://github.com/thedevdojo/larasail/archive/master.tar.gz | tar xz && source larasail-master/install
Once you install LaraSail, in order to do all of the initial server set up you need to run the following command:
- larasail setup
You can make sure it’s installed by running:
- larasail -h
In order to create a new Laravel project just run the following command:
- 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.
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:
- larasail host mywebsite.com /var/www/mywebsite
You can find a video demo on how to install and use LaraSail here:
by: devdojoJune 18, 2020Visit site
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!
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.