Rails development VM environment vagrant and chef configs for the project LOMS
It installs nginx, postgresql, rvm, node.js
It doesn't require any configuration to start RAILS application, except of gem installation and database preparation.
These packages should be installed on Host machine
- ruby 2.0
- librarian-chef gem should be installed as system gem or in default gemset.
- VirtualBox
- vagrant see here
Check out application DB user and its password in vbox/roles/db-master.json
, and set them in RAILS_ROOT/config/database.yml
, or change them in vbox/roles/db-master.json
Let's assume you got my_src
folder
cd my_src
git clone [email protected]:latera/loms.git
cd vbox_p4
gem install librarian-chef
librarian-chef install
vagrant up
vagrant ssh
- add
apache2-utils
package - configure redis
- configure nginx
- set ~/.irbrc and ~/.irb_history
Be patient, It took vagrant up about 20 minutes to complete
To speed up developing the box vagrant snapshot plugin is a must have tool. It allows you to make a VM snapshot after all working recipies apllied, and before work in progress recipe run. Next time work in progress recipe failed, just run vagrant snapshot go
to revert changes introduced by work in progress recipe execution, edit work in progress recipe and run it again. Repeat until succeded.
$ export NOKOGIRI_USE_SYSTEM_LIBRARIES=1 && gem pristine nokogiri