Iāve been trying to step up my WP development for my next side project with trellis + ansible + vagrant + bedrock + sage + git + digital ocean and Iām having the darndest time.
Over the last few days Iāve gone through dave kissā tutorial, which is the only decent tutorial I can find on the topic, 5 times now with only partial success.
Iāve been able to get a local version of mysite.dev working or, a git-deployed-to-DO mysite.com, but not both at the same time and never without some errors output during the process.
Today, I updated all of the software/packages in use (Iām on a Mac Air runninā 10.9) and went through the tutorial again. I got the local .dev version running, git seems to be working, the DO server is provisioned, but with one seemingly non-fatal error:
TASK [wordpress-setup : Create/assign database user to db and grant permissions] *** fatal: [55.55.123.123]: FAILED! => {āfailedā: true, āmsgā: āERROR! ādict objectā has no attribute uāmysite.comāā}
When I attempt to deploy, I get another error during Initialize that stops everything (possibly caused by updating ansible):
fatal: [55.55.123.123]: FAILED! => {āchangedā: false, āfailedā: true, āmodule_stderrā: āā, āmodule_stdoutā: āTraceback (most recent call last):\r\n File "/home/web/.ansible/tmp/ansible-tmp-1455751360.52-201700745318992/deploy_helper", line 2409, in \r\n main()\r\n File "/home/web/.ansible/tmp/ansible-tmp-1455751360.52-201700745318992/deploy_helper", line 434, in main\r\n changes += deploy_helper.create_path(facts[āproject_pathā])\r\n File "/home/web/.ansible/tmp/ansible-tmp-1455751360.52-201700745318992/deploy_helper", line 297, in create_path\r\n os.makedirs(path)\r\n File "/usr/lib/python2.7/os.py", line 150, in makedirs\r\n makedirs(head, mode)\r\n File "/usr/lib/python2.7/os.py", line 157, in makedirs\r\n mkdir(name, mode)\r\nOSError: [Errno 13] Permission denied: ā/srv/wwwā\r\nā, āmsgā: āMODULE FAILUREā, āparsedā: false}
Iām surprised at how difficult and buggy this has been. I thought all this VM-ing, scripting and abstraction action was supposed to make it easy? Is this how it is?
Iām also surprised at the lack of an āofficialā up-to-date tutorial for setting everything up. Maybe Iām not finding it?
A tutorial explaining how to set up multiple roots sites on one DO droplet would be extremely cool.
Feelinā pretty over it at this point. If anyone has any info that could help me, Iād appreciate it!
Thx