-
Notifications
You must be signed in to change notification settings - Fork 41
Digital Ocean Setup
Ryan Haudenschilt edited this page Aug 26, 2022
·
27 revisions
-
Create a new droplet
-
SSH into new droplet as root ?
-
Create a new user with superuser
adduser XXX
usermod -aG sudo XXX
-
SSH into droplet as XXX user
-
Setup the laravel project
cd /var/www/html
sudo git clone GIT_REPO_URL
composer install
-
Configure Nginx to work with laravel
- Copy the Nginx config from laravel's site to /etc/nginx/sites-available/default
- Change server_name to your domain or localhost
- change root to
/var/www/html/GIT_REPO_URL/public
- Make sure the php version matches what was installed above
sudo systemctl reload nginx