So I managed to make Bedrock works on Nginx on Ubuntu 12.04 inside DigitalOcean VPS:
Only 2 quirks;
yet to use the cap deploy because I can’t wrap my head around how do I sync my local copy of the site with the one in VPS? Maybe an example would help. In PagodaBox it’s all done for us.
Secondly somehow the setup doesn’t detect Roots theme and plugins inside app folders. I bet it must be the nginx’s server block configuration file that messed it up.
At first I only get my site at mydomain.com/wp and mydomain.com gave me a Welcome to Nginx! message.
Now that do all the things I checked in my gist, it’s all working fine on mydomain.com (SITEURL). Only thing to figure how do I make Nginx detect the app folder instead of the normal wp-content inside wp.
I can share my instance lemme know if anyone’s interested.
Could be a permissions issue if nothing inside app/ is being detected.
For 1), I assume by “local sync” you mean the database? Capistrano doesn’t do this by default for you. It’s just a matter of doing a local DB dump and then importing it on your server.
I’ll try to look that up and proceed with this in mind. What’s the permission should be like? I think I already setup the permission on root-level at var/www and anything installed should take care of itself based on the tutorial. Anyway thanks for helping out!
Earlier I suspect it’s more of server block somehow doesn’t detect app/ folder etc. Will share my result here.
For 1) Ah, I meant by pushing/pull changes from local to remote. Right now for I’m syncing that with WP Migrate DB Pro even for PagodaBox and other setups.
What I meant I can’t wrap my mind around (*still yet to watch the video!) how do my VPS would allow/accept changes I push from my local to it with cap deploy. I figure I have to setup something in order for it to work. Gonna get it and watch soon.
Still slightly confused by your description of push/pull changes from local to remote.
WordPress site “changes” consist of 2 things:
Code changes
DB changes
#1 is taken care of by source control (Git). Any changes you do locally you commit to your Git repo. Then cap deploy pulls down the Git repo on the remote server so you now have those updates. #2 is in the DB so obviously not in Git. Therefore by default, Capistrano doesn’t do anything to help you “sync” your database across servers.
Re: permissions. Whatever user/group the web server (Nginx) is running as needs at least read permissions for your web root. It’s likely it’s www-data for the group. chown -R <user>:www-data /var/www/site and chmod -R g+r /var/www/site would take care of that. Substitute in whatever user you want.
Yes what I mean was totally push/pull changes from local to remote (the VPS). I didn’t not meant DB changes for Bedrock / cap deploy. I think it’s just me still confuse on how it’s all work. Sorry for the confusion again.
I have tried that but seems like this is the only thing I left out! Omg can’t wait to try and see if it works!
I did something like this based on their tutorial here on Step 5;