All Projects → thedevdojo → Larasail

thedevdojo / Larasail

LaraSail - Set Sail with your Laravel app on DigitalOcean

Programming Languages

shell
77523 projects
bash
514 projects

Projects that are alternatives of or similar to Larasail

Laravel Modules
Module Management In Laravel
Stars: ✭ 3,910 (+1023.56%)
Mutual labels:  hacktoberfest, laravel
Short Url
A Laravel package for creating shortened URLs for your web apps.
Stars: ✭ 293 (-15.8%)
Mutual labels:  hacktoberfest, laravel
Laravel Gamp
📊 Laravel Google Analytics Measurement Protocol Package
Stars: ✭ 271 (-22.13%)
Mutual labels:  hacktoberfest, laravel
Otter
A relatively automatic CRUD backend administration panel for Laravel
Stars: ✭ 261 (-25%)
Mutual labels:  hacktoberfest, laravel
Finance
A self hosted app to help you get a better understanding of your personal finances.
Stars: ✭ 313 (-10.06%)
Mutual labels:  hacktoberfest, laravel
Free Pmo
Project management software for freelancers or agencies, built with Laravel 5.
Stars: ✭ 264 (-24.14%)
Mutual labels:  hacktoberfest, laravel
Spatie.be
The source code of spatie.be
Stars: ✭ 274 (-21.26%)
Mutual labels:  hacktoberfest, laravel
Rotten Scripts
Scripts that will make you go WOW 😍💻
Stars: ✭ 344 (-1.15%)
Mutual labels:  bash-script, hacktoberfest
Laravel Starter
A CMS like modular starter application project built with Laravel 8.x.
Stars: ✭ 299 (-14.08%)
Mutual labels:  hacktoberfest, laravel
Providers
A Collection of Providers for Laravel Socialite
Stars: ✭ 301 (-13.51%)
Mutual labels:  hacktoberfest, laravel
Quicksand
Easily schedule regular cleanup of old soft-deleted Eloquent data.
Stars: ✭ 259 (-25.57%)
Mutual labels:  hacktoberfest, laravel
Validator Docs
Validação de CPF, CNPJ, CNH, NIS, Título Eleitoral e Cartão Nacional de Saúde com Laravel.
Stars: ✭ 334 (-4.02%)
Mutual labels:  hacktoberfest, laravel
Introduction To Bash Scripting
Free Introduction to Bash Scripting eBook
Stars: ✭ 1,903 (+446.84%)
Mutual labels:  bash-script, hacktoberfest
Eloquent Power Joins
The Laravel magic you know, now applied to joins.
Stars: ✭ 264 (-24.14%)
Mutual labels:  hacktoberfest, laravel
Padd
PADD (formerly Chronometer2) is a more expansive version of the original chronometer.sh that is included with Pi-Hole. PADD provides in-depth information about your Pi-hole.
Stars: ✭ 1,011 (+190.52%)
Mutual labels:  bash-script, hacktoberfest
Tlint
Tighten linter for Laravel conventions
Stars: ✭ 274 (-21.26%)
Mutual labels:  hacktoberfest, laravel
Log Fake
A drop in fake logger for testing with the Laravel framework.
Stars: ✭ 254 (-27.01%)
Mutual labels:  hacktoberfest, laravel
Laravel Query Builder
Easily build Eloquent queries from API requests
Stars: ✭ 3,083 (+785.92%)
Mutual labels:  hacktoberfest, laravel
Laravel Api Boilerplate
Laravel API Boilerplate | Please consult the Wiki !
Stars: ✭ 300 (-13.79%)
Mutual labels:  hacktoberfest, laravel
Corcel
Use WordPress backend with Laravel or any PHP application
Stars: ✭ 3,504 (+906.9%)
Mutual labels:  hacktoberfest, laravel

LaraSail

LaraSail is a CLI tool for Laravel to help you Sail the Servers of the DigitalOcean


You'll need a DigitalOcean Account before getting started (Signup here), then you'll need to create a New Droplet. Make sure to select Ubuntu Server:

Installation

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

You can make sure it's installed by running

larasail -h

Setup Your Laravel Server

larasail setup

The default configuration will install Nginx, PHP 7.4, and MySQL 5.7. If you wish to use PHP 7.1, PHP 7.2, or PHP 7.3, you can include the argument php71/php72/php73 like so:

larasail setup php71 # Install with PHP 7.1
larasail setup php72 # Install with PHP 7.2
larasail setup php73 # Install with PHP 7.3
larasail setup php80 # Install with PHP 8.0

Creating a New Site

✨ Automatically

After setting up the server you can create a new project automatically by running:

larasail new <project-name> [--jet <livewire|inertia>] [--teams] [--www-alias]

This will automatically create a project folder in /var/www and set up a host if provided project name contains periods (they will be replaced with underscores for the directory name). By default, larasail sets up the Nginx site configuration and Letsencrypt SSL certificate for your domain. If you would like both the www alias and root domain setup (i.e example.com and www.example.com) kindly pass the --www-alias flag.

🚧 Manually

Alternatively, you can Clone a Repo or Create a New Laravel app within the /var/www folder:

cd /var/www && laravel new mywebsite

If you want to include [Laravel Jetstream][https://jetstream.laravel.com/) into your project, you need to specify the --jet option:

cd /var/www && laravel new mywebsite --jet

Then, you'll need to setup a new Nginx Host by running:

larasail host mywebsite.com /var/www/mywebsite --www-alias

larasail host accepts 3 parameters:

  1. Your website domain (mywebsite.com)
  2. The location of the files for your site (/var/www/mywebsite/public)
  3. Optional flag if you would like to include your project's www alias: www.mywebsite.com (--www-alias)

Finally, point your Domain to the IP address of your new server... And Wallah, you're ready to rock 🤘 with your new Laravel website. If you used the --www-alias flag, don't forget to add your domain's www CNAME record

Passwords

When installing and setting up Larasail there are 2 passwords that are randomly generated.

  1. The password for the new larasail user created on the server.
  2. The default MySQL password

To get the larasail user password you can type in the following command:

larasail pass

And the password for the larasail user will be displayed. Next, to get the default MySQL root password you can type the following command:

larasail mysqlpass

And the MySQL root password will be displayed.

Creating database

After you have created your project you can create additional database and user for it using the following command:

larasail database init [--user larasail] [--db larasail] [--force]

By default it will create user and database larasail and grant all permissions to that user.

TIP: If you are in the project directory when you run this command, it will also try to update .env file with newly generated credentials.

After you have created databases, you can show newly generated passwords using the following command:

larasail database pass

Switching to Larasail user

When you SSH into your server you may want to Switch Users back to the larasail user, You can do so with the following command:

su - larasail

Make sure to star this repo and watch this repo for future updates. Thanks for checking out Larasail ⛵

Contributing

If you are contributing, please read the contributing file before submitting your pull requests.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].