Last Updated: September 09, 2019
·
8.483K
· michiels

Set up your own Rails server in minutes with these recipes

I made a Chef repository with a great setup to roll your own Rails server and even a multi-server and multi-app infrastructure. We use this at Firmhouse to deploy our apps.

https://github.com/firmhouse/locomotive-chef-repo

It uses nginx as the webserver and unicorn as the Rails app server. You can deploy your apps using Capistrano. It allows rolling restarts and you can add multiple Rails apps to a single server.

It also includes a preset Vagrant sample so you can test with Vagrant and VirtualBox.

Let me know if this works out for you.

2 Responses
Add your response

@offtherails Yeah! It's a nice way to learn a bit about Vagrant too! Let me know if you run into problems. Might be possible that the first-run experience is not 100% yet and the documentation needs to be updated.

Please let me know and I'll help you.

over 1 year ago ·

Which Vagrant base box and version of Chef does this work with? I can't seem to get it working with Precise 64 base because Chef is now on version 11, which requires Ruby 1.9. But Precise ships with 1.8 :-(

over 1 year ago ·