-
Notifications
You must be signed in to change notification settings - Fork 0
SettingUpVagrantEnvironment
If you want to get started on working on MarkUs quickly and painlessly, this is the way to do it.
- Install Vagrant and VirtualBox/VMWare Fusion
- Clone the Markus repo
-
cdto the Vagrantfile vagrant up
This will download a fairly large (3GB) Debian box from the internet, so go take a walk or something. This box has GNOME, postgres, subversion, and all of MarkUs’s other dependencies installed. When the download is complete, VirtualBox will run the box in headless mode.
NOTE: If, for some reason, it fails and complains about SSH, you most likely have timed out. Check your internet connection and attempt to limit network activity to vagrant up
Next, run the following commands to connect and setup to the virtual machine:
$> vagrant ssh
$> rvm install ruby-2.1.1
$> rvm use 2.1.1
$> cp database.yml ../../Markus/config
$> cd ../../Markus
$> bundle install
$> bundle exec rails server
Thi commands will install ruby-2.1.1, move the database.yml file that is configured for Postgres into the Markus file, install the required gems, and boot the server which you can access on your home machine at localhost:42069. The message saying it is accessible at localhost:3000 is a static message and does not reflect the changed port.