Skip to content

Commit 7023bb0

Browse files
committed
Added steps to use the development environemnt from Vagrant (recursecenter/community-dev)
1 parent 6245e36 commit 7023bb0

3 files changed

Lines changed: 41 additions & 0 deletions

File tree

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,8 @@ public/client
2525
.DS_Store
2626

2727
*.swp
28+
29+
# Ignore vagrant related files for future Contributors
30+
.vagrant
31+
Vagrantfile
32+
package.box

DEVELOMENT-ENV.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#Setting up the Development Environment#
2+
3+
## Introduction ##
4+
5+
The steps described in the document automates the setup of the development enviroment for working with the Community Code itself.
6+
7+
##Requirements##
8+
9+
- [VirtualBox][1]
10+
- [Vagrant][2]
11+
12+
##How to build the VM##
13+
14+
It should be easy:
15+
16+
host $ git clone https://github.com/recursecenter/community.git
17+
host $ cd community
18+
host $ vagrant up
19+
host $ vagrant ssh
20+
vm $ cd /vagrant
21+
vm $ bin/rake db:setup
22+
23+
You are done now!
24+
25+
[1]: https://www.virtualbox.org/
26+
[2]: https://www.vagrantup.com/

Vagrantfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Vagrant.configure(2) do |config|
2+
config.vm.box = "recursecenter/community-dev"
3+
4+
config.vm.network "forwarded_port", guest: 5001, host: 5001
5+
config.vm.network "forwarded_port", guest: 9200, host: 9200
6+
7+
config.vm.provider "virtualbox" do |vb|
8+
vb.memory = "2048"
9+
end
10+
end

0 commit comments

Comments
 (0)