Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development Environment using Vagrant #309

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ public/client
.DS_Store

*.swp

# Ignore vagrant related files for future Contributors
.vagrant
package.box
26 changes: 26 additions & 0 deletions DEVELOMENT-ENV.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#Setting up the Development Environment#

## Introduction ##

The steps described in the document automates the setup of the development enviroment for working with the Community Code itself.

##Requirements##

- [VirtualBox][1]
- [Vagrant][2]

##How to build the VM##

It should be easy:

host $ git clone https://github.com/recursecenter/community.git
host $ cd community
host $ vagrant up
host $ vagrant ssh
vm $ cd /vagrant
vm $ bin/rake db:setup

You are done now!

[1]: https://www.virtualbox.org/
[2]: https://www.vagrantup.com/
10 changes: 10 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Vagrant.configure(2) do |config|
config.vm.box = "recursecenter/community-dev"

config.vm.network "forwarded_port", guest: 5001, host: 5001
config.vm.network "forwarded_port", guest: 9200, host: 9200

config.vm.provider "virtualbox" do |vb|
vb.memory = "2048"
end
end