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.
- Centos 6.7
| 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 |
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]"
],
}The postgres recipe installs database::postgresql and postgresql::server and then creates development and test databases.
{
"run_list": [
"recipe[umark_ruby::postgres]"
],
}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]"
],
}The rails recipe runs bundle install, rake db:schema:load and rake db:seed.
{
"run_list": [
"recipe[umark_ruby::rails]"
],
}Author:: Nick Weaver (jnweaver@wisc.edu)