From 3abaf170264652231773a187acd9887fe8a6be2b Mon Sep 17 00:00:00 2001 From: James Hsiao Date: Sun, 2 Mar 2014 06:58:17 -0500 Subject: [PATCH] Added Vagrant for unified development env. --- .gitignore | 1 + VAGRANT.md | 26 ++++++++++++++++++++++++++ Vagrantfile | 11 +++++++++++ 3 files changed, 38 insertions(+) create mode 100644 VAGRANT.md create mode 100644 Vagrantfile diff --git a/.gitignore b/.gitignore index 4a6eb3925d..acc00e5652 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ newrelic_agent.log .bower-tmp .bower-registry .bower-cache +.vagrant *.log src/*/*.map diff --git a/VAGRANT.md b/VAGRANT.md new file mode 100644 index 0000000000..fbc01d80b4 --- /dev/null +++ b/VAGRANT.md @@ -0,0 +1,26 @@ +Vagrant +=============== + +Vagrant is a system to create reproducible and portable development +environments. Because of the variety of systems used for HabitRPG +development and the various issues developers may encounter setting up +HabitRPG on them, vagrant can provide a single development environment +no matter the developer's platform. + +To use Vagrant, go to [their downloads +page](http://www.vagrantup.com/downloads.html) and download and install +the software appropriate for your system. + +Once Vagrant has been installed, issue the following commands to get the +environment up and running: + +1. Download the vagrant box: +`vagrant box add habitrpg http://dl.dropboxusercontent.com/u/4309797/devel/habitrpg/package.box` +2. Initialize the vagrant box: +`vagrant init` +3. Boot up and provision the software on the box: +`vagrant up` +4. Login to the environment: +`vagrant ssh` + +The HabitRPG files will be located under `/vagrant' on the filesystem. diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000000..4060eaecc5 --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,11 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +# The vagrant config for HabitRPG. Requires vagrant on your local machine. +# The box fetched will be precise64 located: +# http://files.vagrantup.com/precise64.box + +Vagrant.configure("2") do |config| + config.vm.box = "habitrpg" + config.vm.network "forwarded_port", guest: 3000, host: 3000 +end