Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 517 Bytes

README.md

File metadata and controls

35 lines (25 loc) · 517 Bytes

Debian Web Server Playbook

Run on the remote machine:

# useradd -m -s /bin/bash deploy
# passwd deploy
# apt-get update
# apt-get upgrade
# apt-get install sudo
# echo 'deploy ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/deploy

Then on local machine:

$ ssh-copy-id deploy@hostname
$ make provision

Vagrant

Just run:

make vagrant

Let's Encrypt

To generate ssl certificate on host:

sudo certbot certonly --webroot -w /var/www/app/current/public -d example.com