Ansible playbooks for provisioning a server with Nginx, PHP, Dropbox and Stacey
Run after cloning:
ansible-galaxy install -r requirements.yml
ansible-playbook -i hosts/[env] server.yml
ansible-playbook -i hosts/[env] deploy.yml
-
SSH as
webuser -
Run Dropbox with
./.dropbox-dist/dropboxd -
Open URL that appears and authorise access
-
dropbox stop -
Move content folder to
/srv/www/[website]/shared/content -
Symlink folder back to Dropbox, e.g. if folder was called
my-content-folder:ln -s /srv/www/[website]/shared/content ~/Dropbox/my-content-folder -
dropbox start