Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

hydra-billing/loms-vbox

Repository files navigation

vbox_p4

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.

Prerequisites

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

Using

Setup DB user an password

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

Create a box

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

TODO

  • add apache2-utils package
  • configure redis
  • configure nginx
  • set ~/.irbrc and ~/.irb_history

Notes

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.

Error: version `LIBXML2_2.9.0' not found

$ export NOKOGIRI_USE_SYSTEM_LIBRARIES=1 && gem pristine nokogiri

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages