Hello, I am having an issue with deployment. I have followed all of the steps in the example project (https://github.com/roots/roots-example-project.com) and was able to successfully set up my local dev environment. I was also able to provision the server with the following: ansible-playbook -i hosts/staging server.yml
However, when I try to deploy to DigitalOcean using ./deploy.sh staging amigoslink.org, I continuously get the following error:
TASK: [deploy | Create shared symlinks] ***************************************
failed: [45.55.89.50] => (item={āpathā: āweb/app/uploadsā, āsrcā: āuploadsā}) => {āfailedā: true, āitemā: {āpathā: āweb/app/uploadsā, āsrcā: āuploadsā}, āpathā: ā/srv/www/amigoslink.org/releases/20150616135757/web/app/uploadsā, āstateā: āabsentā}
msg: Error while linking: [Errno 2] No such file or directory
FATAL: all hosts have already failed ā aborting
My DigitalOcean droplet was just created before this new attempt ā Installed Ubuntu 14.0.4 and nothing else. Any Idea what might be causing this?
Iāve been at this for a week now, spending most of my days trying to get this thing to work and I still canāt get it working on a fresh Digital Ocean Droplet. Iāve followed the example project exactly, and every other guide Iāve found. The closest Iāve been is this issue right here.
Iāve tried:
subtree: site subtree_path: site local_path: '../site' local_path: ../site wp_siteurl: http://bohemiancode.com/wp wp_siteurl: http://bohemiancode.com
None of them seem to rid me of:
TASK: [deploy | Create shared symlinks] ***************************************
failed: [128.199.135.3] => (item={'path': 'web/app/uploads', 'src': 'uploads'}) => {"failed": true, "item": {"path": "web/app/uploads", "src": "uploads"}, "path": "/srv/www/bohemiancode.com/releases/20150926175533/web/app/uploads", "state": "absent"}
msg: Error while linking: [Errno 2] No such file or directory
Iām running the latest versions of Trellis, Bedrock and Sage as Iāve freshly cloned them all this week. I will try again, but man I feel like 98% of being a web dev is spending time doing stuff like this which is meant to save me time⦠haha
I got it working by scratching the entire project, cloning the actual example project and changing the settings to match my server and database. It worked flawlessly but I can see that the process is somewhat different. I donāt remember exactly how different as I was doing all of this until 5.30am this morning.
Now that you mention it, perhaps I created an upload folder in the wrong place, to double check, it should be made so that it exists in: /srv/www/example.com/shared/uploads
is that correct?