Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A mongodb recipe for Moonshine

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 moonshine
Octocat-spinner-32 spec
Octocat-spinner-32 templates
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.rdoc
README.rdoc

Moonshine_Mongodb

A plugin for Moonshine

A plugin for installing and managing mongodb.

Instructions

Rails 2

  • script/plugin install git://github.com/railsmachine/moonshine_mongodb.git

Rails 3

  • rails plugin install git://github.com/railsmachine/moonshine_mongodb.git

  • Include the recipe in your Moonshine manifest

    recipe :mongodb
  • Create a file 'config/mongo.yml' with your settings:

    development: &global_settings
      database: myapp-development
      host: 127.0.0.1
      port: 27017
    
    production:
      database: myapp
      username: username
      password: password
      <<: *global_settings
  • Copy over the mongo.rb initializer: cp vendor/plugins/moonshine_mongodb/templates/mongo.rb config/initializers/

Note: The provided `mongo.yml` and `mongo.rb` are just examples for mongo_mapper. You can use Mongoid or anything else instead.

Something went wrong with that request. Please try again.