CraneRails

Warning This is opinionated! Like hella opinionated.

This gem gives you the files you need to run my ideal development environment for my ideal development stack:

  • Rails-API (Back-end)
  • Yeoman-Angular (Front-end)
  • Postgresql
  • Elasticsearch
  • Nginix

With a file organization like this:

front-end/
  # yeoman-angular app
back-end/
  # rails-api app
Vagrantfile
tmuxinator-sample.yml

You can find my images that I use to build these containers at my Docker Index Page

Prerequisites

This gem makes the assumption you have the following installed:

  • Virtualbox
  • Vagrant
  • Tmuxinator

Installation

gem install crane_rails

There is really no point in adding this gem to your gemfile as it will override your current Gemfile

Usage

Run this command in the root of the file structure described above (aka not Rails.root!)

crane_rails bootstrap

Next comes Tmuxinator

move the tmuxinator-sample file to the tmuxinator directory

mv tmuxinator-sample.yml ~/.tmuxinator/crane.yml

and then start rails in vagrant with docker!!

tmuxinator start crane

Contributing

Please let me know how I can make this better, even if it's just adding a github issue sans code.

License

MIT, © Nicholas Shook, 2014