Skip to content

UWMadisonUcomm/umark_ruby_cookbook

Repository files navigation

Rails with Postgres Cookbook

This chef cookbook provides recipes for building a Rails development Vagrant box on Centos 6.6. It installs PostgreSQL 9.3 and creates development and test databases. It then runs bundle install, npm install, rake db:schema:load and rake db:seed to install gems, Node modules and load the database schema and seed data.

Supported Platforms

  • Centos 6.7

Attributes

Key Type Description Default
['umark_ruby']['project_root'] String Path to applicaton root /var/www/
['umark_ruby']['ruby_version'] String Ruby version 2.1.1
['umark_ruby']['db_name'] String Development database name my_db_name
['umark_ruby']['db_name_test'] String Test database name my_db_name_test

Usage

umark_ruby::default

The default recipe installs Ruby via rbenv, as well as the bundler gem.

Include umark_ruby in your node's run_list:

{
  "run_list": [
    "recipe[umark_ruby::default]"
  ],
}

umark_ruby::postgres

The postgres recipe installs database::postgresql and postgresql::server and then creates development and test databases.

{
  "run_list": [
    "recipe[umark_ruby::postgres]"
  ],
}

umark_ruby::javascript_packages

The javascript_packages recipe installs Node, grunt globally and then runs npm install in the project root directory.

{
  "run_list": [
    "recipe[umark_ruby::javascript_packages]"
  ],
}

umark_ruby::rails

The rails recipe runs bundle install, rake db:schema:load and rake db:seed.

{
  "run_list": [
    "recipe[umark_ruby::rails]"
  ],
}

License and Authors

Author:: Nick Weaver (jnweaver@wisc.edu)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors