@@ -9,10 +9,6 @@ A community for developers to unlock & share new skills.
9
9
TODO: Describe Stripe configuration
10
10
TODO: Describe GitHub configuration https://github.com/settings/applications/new
11
11
12
- TODO: heroku plugins: install git://github.com/ddollar/heroku-config.git
13
-
14
- TODO: bundle exec rake assets: clean assets: precompile
15
-
16
12
### How to work on Coderwall using Vagrant on VirtualBox
17
13
18
14
Sure you could download and install all the dependencies, services, and whatnot
@@ -24,12 +20,11 @@ everything in place and ready for you to start hacking (even on Windows!)
24
20
25
21
Here's everything you need to get started working on Coderwall with Vagrant TODAY!
26
22
27
- * At the time of writing this document we were using VirtualBox 4.3.6 and Vagrant 1.4 .2.*
23
+ * At the time of writing this document we were using VirtualBox 4.3.10 and Vagrant 1.6 .2.*
28
24
29
25
#### Vagrant! I already know what to do.
30
26
31
- __ If you're an experienced Vagrant user then you can fetch the base box and
32
- register it yourself.__
27
+ __ If you're an experienced Vagrant user then you can fetch the base box and register it yourself.__
33
28
34
29
There's only a VirtualBox basebox right now.
35
30
@@ -41,16 +36,16 @@ There's only a VirtualBox basebox right now.
41
36
42
37
Grab the VirtualBox installer from ** [ here] ( https://www.virtualbox.org/wiki/Downloads ) ** .
43
38
44
- _ At the time of writing this documentation the current version is VirtualBox 4.3.6 ._
39
+ _ At the time of writing this documentation the current version is VirtualBox 4.3.10 ._
45
40
46
- You don't have to install the VirtualBox 4.3.6 Oracle VM VirtualBox Extension Pack
41
+ You don't have to install the VirtualBox 4.3.10 Oracle VM VirtualBox Extension Pack
47
42
but I recommend installing it for the extra drivers.
48
43
49
44
2 . ** Install Vagrant**
50
45
51
46
Grab the Vagrant installer from ** [ here] ( http://www.vagrantup.com/downloads.html ) ** .
52
47
53
- _ At the time of writing this documentation the current version is Vagrant 1.4 .2._
48
+ _ At the time of writing this documentation the current version is Vagrant 1.6 .2._
54
49
55
50
Follow the installation instructions for your platform on the Vagrant download page.
56
51
@@ -59,25 +54,24 @@ There's only a VirtualBox basebox right now.
59
54
If you're on a OS X/Linux system you can install the plugins by running:
60
55
61
56
vagrant plugin install vagrant-vbguest
62
- vagrant plugin install vagrant-cachier
63
57
64
- The tools will each help with keeping the VirtualBox Guest Additions up-to-date as
65
- well as helping reduce network bandwidth and speed up requests for APT packages,
66
- RubyGems, and RVM after their first request by caching the responses locally.
58
+ The vagrant-vbguest plugin will each help with keeping the VirtualBox Guest Additions up-to-date.
67
59
68
- 3 . ** Git coderwall/web **
60
+ 3 . ** Git assemblymade/coderwall **
69
61
70
- At the moment I'm going to assume that I don't need to describe this process yet.
62
+ mkdir -p ~ /assemblymade
63
+ cd ~ /assemblymade
64
+ git clone git@github.com : assemblymade /coderwall.git
71
65
72
66
I am going to assume that the project is cloned into your home directory in
73
- and into a directory structure like ` ~/coderwall/web ` .
67
+ and into a directory structure like ` ~/assemblymade/coderwall ` .
74
68
75
69
4 . ** Fire it up! Fire it up! Fire it up!**
76
70
77
71
Now that you've got VirtualBox and Vagrant installed with the source code
78
- cloned in ` ~/coderwall/web ` we can start up the Vagrant instance.
72
+ cloned in ` ~/assemblymade/coderwall ` we can start up the Vagrant instance.
79
73
80
- cd ~/coderwall/web
74
+ cd ~/assemblymade/coderwall
81
75
vagrant up
82
76
83
77
You will likely be prompted for your ` sudo ` password to allow VirtualBox
@@ -92,7 +86,7 @@ There's only a VirtualBox basebox right now.
92
86
Once Vagrant reports that you're booted up and ready to go then you'll be
93
87
able to SSH into the local vm similiar to any other remote box.
94
88
95
- # still in ~/coderwall/web
89
+ # still in ~/assemblymade/coderwall
96
90
vagrant ssh
97
91
# whoa!
98
92
pwd
@@ -103,8 +97,8 @@ There's only a VirtualBox basebox right now.
103
97
Now that you're SSH'ed into the Vagrant VM it's time to run the app.
104
98
105
99
# we're still SSH'ed into Vbox
106
- cd ~/web
107
- rvm current # should be ruby-1.9.3-p484 @coderwall
100
+ cd ~/assemblymade
101
+ rvm current # should be ruby-2.1.0 @coderwall
108
102
bundle check # should be a response that everything's good
109
103
bundle exec rails server
110
104
@@ -128,14 +122,14 @@ There's only a VirtualBox basebox right now.
128
122
let you have whatever crazy, complicated editors and tools to work on your
129
123
code while abstracting away the nasty details of installing and configuring Postgres.
130
124
131
- If you're on your host computer and navigate to ` ~/coderwall/web ` (we're all there, right?)
125
+ If you're on your host computer and navigate to ` ~/assemblymade/coderwall ` (we're all there, right?)
132
126
and make changes to your code while Vagrant is running you'll be able to see the changes
133
127
reflected in Vagrant immediately. Try this.
134
128
135
- cd ~/coderwall/web
129
+ cd ~/assemblymade/coderwall
136
130
echo Hello, `whoami` from `hostname` >> HELLO.txt
137
131
vagrant ssh
138
- cd ~/web
132
+ cd ~/assemblymade
139
133
cat HELLO.txt #whoa.
140
134
echo Hello, `whoami` from `hostname` >> HELLO.txt
141
135
exit
@@ -174,7 +168,7 @@ Coderwall is built from the following open source components:
174
168
- [ Redis] ( http://redis.io/ )
175
169
- [ Ruby on Rails] ( https://github.com/rails/rails )
176
170
177
- Plus * lots* of Ruby Gems, a complete list of which is at [ /master/Gemfile] ( https://github.com/assemblymade/cw-web /blob/master/Gemfile ) .
171
+ Plus * lots* of Ruby Gems, a complete list of which is at [ /master/Gemfile] ( https://github.com/assemblymade/coderwall /blob/master/Gemfile ) .
178
172
179
173
We use [ Vagrant] ( http://www.vagrantup.com/ ) and [ VirtualBox] ( https://www.virtualbox.org/ ) to isolate and simplify the local development process.
180
174
0 commit comments