LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

larasail

server provisioning tool for deploying Laravel applications on Digital Ocean

TLDR

Set up server with default PHP version
$ larasail setup
copy
Set up server with specific PHP version
$ larasail setup [php84]
copy
Set up with MariaDB and Redis instead of the defaults
$ larasail setup [php83] mariadb redis
copy
Create a new Laravel project with Nginx site and SSL
$ larasail new [example.com] --www-alias
copy
Add a new Laravel site
$ larasail host [domain] [path/to/site_directory]
copy
Create a database and user for the current project
$ larasail database init --user [user] --db [database]
copy
Retrieve Larasail user password
$ larasail pass
copy
Retrieve MySQL password
$ larasail mysqlpass
copy

SYNOPSIS

larasail command [arguments]

DESCRIPTION

larasail is a server provisioning tool for deploying Laravel applications on Digital Ocean servers. It automates the installation of PHP, Nginx, MySQL, Composer, and other Laravel dependencies.The tool simplifies the process of setting up a production Laravel environment, handling web server configuration, SSL certificates, and database setup. It is installed on the server itself and creates a larasail user whose password, like the MySQL root password, is randomly generated.

PARAMETERS

setup [phpXY] [mariadb] [redis]

Install Nginx, PHP, MySQL (or MariaDB), Composer and optionally Redis
new project [--jet livewire|inertia] [--teams] [--wave] [--www-alias]
Create a Laravel (or Wave) project in /var/www with Nginx site and Let's Encrypt certificate
host domain directory [--www-alias]
Add an Nginx site for an existing project
database init [--user name] [--db name] [--force]
Create a database and user; updates .env when run inside the project directory
database pass
Display the generated database password
pass
Display the Larasail user password
mysqlpass
Display the MySQL root password

CAVEATS

Designed specifically for Digital Ocean droplets running Ubuntu. Requires root access on the server. The domain must point to the server before the Let's Encrypt certificate can be issued. The GitHub repository is archived and no longer maintained, so newer Ubuntu or PHP releases may not be supported.

HISTORY

Larasail was created by DevDojo to simplify Laravel deployment, providing a lightweight alternative to more complex server management tools.

SEE ALSO

composer(1), php(1), nginx(8), certbot(1), laravel(1)

RESOURCES

Copied to clipboard
Kai