mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-01 15:31:16 +00:00
Merge pull request #2989 from thepeopleseason/vagrant-setup
Added Vagrant for unified, portable dev environment
This commit is contained in:
commit
449001076c
3 changed files with 36 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -12,6 +12,7 @@ newrelic_agent.log
|
|||
.bower-tmp
|
||||
.bower-registry
|
||||
.bower-cache
|
||||
.vagrant
|
||||
|
||||
*.log
|
||||
src/*/*.map
|
||||
|
|
|
|||
24
VAGRANT.md
Normal file
24
VAGRANT.md
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
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. Boot up the box:
|
||||
`vagrant up`
|
||||
3. Login to the environment:
|
||||
`vagrant ssh`
|
||||
|
||||
The HabitRPG files will be located under `/vagrant' on the filesystem.
|
||||
11
Vagrantfile
vendored
Normal file
11
Vagrantfile
vendored
Normal 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
|
||||
Loading…
Reference in a new issue