-
Notifications
You must be signed in to change notification settings - Fork 0
Development environment
The dev. environment is currently available in the vagrant branch and is built using a mixture of vagrant and chef on the outside and nginx and mysql on the inside.
- IP-Address
- 192.168.56.101
- Hostname
- oss2.vm In the form of [username:password]
- Machine
- vagrant:vagrant
- MySQL
- root:123qwe
- developer:123qwe
Hint: If you need root access, just do
sudo su
-
Vagrant hosts updater plugin From within anywhere in your system do
vagrant plugin install vagrant-hostsupdater
-
Go into or clone the repository
-
Switch to the vagrant branch
git fetch git checkout vagrant git submodule update -
Bring vagrant up
vagrant up
-
Change the ruby version in Gemfile (needed once) data/Gemfile from
ruby "2.0.0"to
ruby "1.9.3" -
Log into vagrant
vagrant ssh -
Install the needed gems
cd /vagrant/data bundle install --without production rake db:migrate RAILS_ENV=development
Attention: Do not commit this change, as this will break Travis CI!
Using a web browser go to
http://oss2.vm
or
http://192.168.56.101
Attention: This needs the vagrant hosts updater plugin or otherwise you won't be able to access the page by the vms hostname. You can do this manually by inserting
192.168.56.101 oss2.vm
into your hosts file.
-
Go into the set up repo (vagrant branch, see Getting started)
-
Connect
vagrant ssh -
Do whatever you want
-
Go into the set up repo (vagrant branch, see Getting started)
-
Destroy the virtual machine with
vagrant destroy -
Bring the virtual machine up again with
vagrant up -
Follow Setup the application
-
Go into the set up repo (vagrant branch, see Getting started)
-
Stop the virtual machine with
vagrant halt