(Vagrant | VPS) with Ruby, Postgresql, and Nginx in 3 commands


  • I'm using PostgreSQL as the backend for my web applications. I like that I get the benefits of a SQL database while also being able to use features like HSTORE.


  • Vagrant allows me to ensure that anyone I'm collaborating with will be able to test my web application in the same environment. I also use Vagrant to setup VMs that I can use to refine my Capistrano recipes.


  • Gardenbed installs all of the tools that are necessary to deploy a Ruby on Rails application to a VPS.


  • I don't have a strong preference between using Apache and nginx, but I find that the config files for nginx to be much more manageable.


  • I'm using puppet to configure my servers. This makes it really simple to ensure that I have the same environment. There is a bit of a learning curve, but the repeatability definitely makes it worth the effort. I found puppet to be a little easier to pick up relative to chef, but I've used both. They're both great solutions.

    I really like that there are a lot of modules available on the puppet forge that are being actively maintained.


  • For running a VM locally with Vagrant. It can be a little irritable, but it's open source and free, so I'm not complaining. I would probably use VMWare, but I don't want to pay for it right now.


  • Node is installed for asset compilation during deployment.


  • I'm using Redis to support Sidekiq to support background processing.


  • I have a manifest to setup a Docker container before I have a Dockerfile. I'm still trying to figure out my preferred method of deployment, so in the meantime I figured I should try different methods to make an informed judgment.


569702

Favorite
3
Views
485
569702
Favorite
Views
485