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
Just run:
make vagrant
To generate ssl certificate on host:
sudo certbot certonly --webroot -w /var/www/app/current/public -d example.com