public
Description: Rails deployment and configuration management done right. ShadowPuppet + Capistrano == crazy delicious
Home | Edit | New

Add a Gem

Adding a new gem to a Rails application managed by Moonshine is a three step process.

1. Add gem to environment.rb

...
config.gem "my_cool_gem"
...

2. Update your config/gems.yml

rake moonshine:gems

This will regenerate your config/gems.yml to reflect the gems in your environment.rb. Be sure to add this to your git repo by doing:

git add config/gems.yml && git commit -m "Added config/gems.yml generated by moonshine"

3. Deploy your application

The next time you deploy your application Moonshine will ensure all gems specified in config/gems.yml are installed on your server.

Last edited by melvinram, Tue Apr 21 23:46:07 -0700 2009
Home | Edit | New
Versions: