Railsworks

Build Status Gem Version Code Climate Coverage Status Dependency Status Documentation

Useful rake tasks for rails apps deployed via Amazon OpsWorks

Installation

Add this line to your application's Gemfile:

gem 'railsworks'

And then execute:

$ bundle

Or install it yourself as:

$ gem install railsworks

Import the tasks by adding a line to your Rakefile:

require 'railsworks/tasks'

Create config/opsworks.yml with the IDs from OpsWorks

production:
   us-east-1:
     stack_id: "84b1f7e9-bf0a-4c22-8bd9-e95b77347017"
     layer_id: "648680a9-a124-47b5-a05d-9db89f94147d"
     app_id: "997aaf39-f92e-4f6e-884a-f4a7534e84a3"

Usage

To deploy to your production environment with migrations

$ rake deploy:production

To open a rails console on production

$ rake console:production

Contributing

  1. Fork it ( https://github.com/[my-github-username]/railsworks/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request