Huge thanks to @bounga for his post that didn't assume you've got a working /etc/nginx.conf
. Everyone else's posts just assume that you've got the same /etc/nginx.conf
as they do, and when you don't, you're screwed.
I like the sites-available/sites-enabled
paradigm so I did this:
mkdir /etc/nginx/sites-available /etc/nginx/sites-enabled
ln -s /etc/nginx/sites-enabled /etc/nginx/vhosts.d
I highly recommend using capistrano-puma. Super basic steps condensed from the capistrano-puma readme:
- Add this to your Gemfile in the development group: