Added Vagrant for unified development env.

This commit is contained in:
James Hsiao 2014-03-02 06:58:17 -05:00
parent 02c283b628
commit 3abaf17026
3 changed files with 38 additions and 0 deletions

1
.gitignore vendored
View file

@ -12,6 +12,7 @@ newrelic_agent.log
.bower-tmp
.bower-registry
.bower-cache
.vagrant
*.log
src/*/*.map

26
VAGRANT.md Normal file
View file

@ -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.

11
Vagrantfile vendored Normal file
View file

@ -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