capistrano-3-rails-template icon indicating copy to clipboard operation
capistrano-3-rails-template copied to clipboard

Choosing application role (web app db)

Open rossettistone opened this issue 10 years ago • 0 comments

First, thanks for an outstanding repo. Wouldn't have gotten anywhere without this and your accompanying post at http://www.talkingquickly.co.uk/2014/01/deploying-rails-apps-to-a-vps-with-capistrano-v3/

One subtlety that got me into trouble: in production.rb, there's the choice of roles to launch, from %w{web app db}. As I was only putting up a single server, I chose web and deleted the other two. Upon reflection, this was not a good choice, as I imagine web is meant to indicate a web worker rather than a web server.

Thing was, it produced thoroughly mystifying results as tasks silently failed to run, compile and rsync assets, etc. Very frustrating until I read through the tasks again and noticed that many of them specified :app.

Not a proper bug report, just a request: it would be a huge help if the docs or readme made a note of this important choice. I imagine others are likely to run into it as well.

Thanks again for a great repo!

rossettistone avatar Feb 27 '15 04:02 rossettistone