You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This app creates <http://installfest.heroku.com> which leads students through the various complicated setup instructions for getting Ruby, Rails, Git, etc. installed on whatever combination of computer, OS, and version they happened to bring the the workshop.
7
+
This is a Sinatra app, deployed at <http://installfest.heroku.com>, which leads students through the various complicated setup instructions for getting Ruby, Rails, Git, etc. installed on whatever combination of computer, OS, and version they happened to bring the the workshop.
8
8
9
9
The site comprises files stored in a "case" directory; the one we care about now is ROOT/cases/installfest.
10
10
@@ -136,7 +136,7 @@ StepFile is an [Erector](http://erector.rubyforge.org)-based DSL, so if you want
136
136
end
137
137
138
138
139
-
# TODO (app)
139
+
# TODO (features)
140
140
141
141
* big fat checkboxes
142
142
* checking the box should make the step go green
@@ -156,7 +156,15 @@ StepFile is an [Erector](http://erector.rubyforge.org)-based DSL, so if you want
note "An SSH key uniquely identifies you (and your computer) when your computer is communicating with other computers. Think of an SSH key as a fancy password."
2
+
3
+
note "You'll need one of these to create your Heroku and Github accounts."
4
+
5
+
important "Be sure to use the same email address that you used when you set up Git."
6
+
7
+
important "**REPLACE** `[email protected]` with your **actual email address** below."
option "Hit enter to accept blank passphrase, then hit enter again"
13
+
option "If your computer is shared with other people, as in a work laptop, you should choose and enter a real passphrase. Twice."
14
+
end
15
+
16
+
todo "expected output of ssh-keygen command"
17
+
18
+
verify do
19
+
note "Your brand-new public key is now stored at `~/.ssh/id_rsa.pub`"
20
+
todo "what is a home directory? what is tilde?"
21
+
tip "Public vs. Private Keys" do
22
+
note "If you look inside `~/.ssh/`, you will notice two files with the same name: `id_rsa` and `id_rsa.pub`."
23
+
note "`id_rsa.pub` is your **public key** and can be shared freely."
24
+
note "`id_rsa` is your **private key** and must be kept secret."
25
+
note "If someone else gets your private key and your passphrase, then they can pretend to be you and log on to your Heroku or Github accounts and cause mischief!"
Copy file name to clipboardExpand all lines: cases/installfest/install_sqlite_manager.step
+21-11Lines changed: 21 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -9,25 +9,35 @@ step "Install SQLite Manager" do
9
9
10
10
note "Install the [SQLite Manager](https://addons.mozilla.org/en-US/firefox/addon/5817) Firefox plugin."
11
11
12
-
note "If you have trouble installing, follow these detailed instructions:"
12
+
end
13
13
14
+
step "If you have trouble installing, follow these detailed instructions:" do
15
+
16
+
verify "Your Firefox Version" do
17
+
note "Open Firefox"
18
+
note "Select the *Help* menu"
19
+
note "Click *About Mozilla Firefox*"
20
+
note "The version number is right under the 'Firefox' title."
21
+
result "3.6 or higher"
22
+
note "If you have an old version, [upgrade firefox](http://www.mozilla.com/en-US/firefox/upgrade.html)"
23
+
end
24
+
14
25
note <<-MARKDOWN
15
26
16
-
* If you already have Firefox installed, verify that it is **version 3.6.13** or greater. (Help -> About Mozilla Firefox. The version number is right under the "Firefox" title.)
17
-
18
-
* If you don't have Firefox installed, or it's an older version, [<http://www.mozilla.com/en-US/> install Firefox].
19
-
20
-
* Once it's installed, open Firefox and go to Tools -> Add-ons. At the top of the add-ons window, click "Get Add-ons."
27
+
* Once it's installed, open Firefox and go to Tools -> Add-ons. At the top of the add-ons window, click "Get Add-ons."
21
28
22
-
* There will be search box directly underneath "Get Add-ons" that says "Search All Add-ons." Enter "SQLite" (without the quotes) in the box and hit enter.
29
+
* There will be search box directly underneath "Get Add-ons" that says "Search All Add-ons." Enter `SQLite` in the box and hit enter.
23
30
24
-
* **SQLite Manager** should be the top result. Click "Add to Firefox..." (If SQLite Manager isn't in the results, check the spelling - SQLite only has one L. Also, check that you have at least Firefox 3.5.)
31
+
* **SQLite Manager** should be the top result. Click "Add to Firefox..."
25
32
26
-
* Wait for the countdown, then click "Install Now."
33
+
* If SQLite Manager isn't in the results, check the spelling - SQLite only has one L.
27
34
28
-
* In the Add-ons windows, click "Restart Firefox."
35
+
* Wait for the countdown, then click "Install Now."
29
36
30
-
* Once Firefox restarts, the Add-ons window should say "1 new add-on has been installed."
37
+
* In the Add-ons window, click "Restart Firefox."
38
+
* This will preserve the windows you have open, so it should bring you right back to this page.
39
+
40
+
* Once Firefox restarts, the Add-ons window should say "1 new add-on has been installed."
Copy file name to clipboardExpand all lines: cases/installfest/osx_panther.step
+15-41Lines changed: 15 additions & 41 deletions
Original file line number
Diff line number
Diff line change
@@ -78,32 +78,10 @@ In some cases, SQLite was installed with Rails in the previous section. To check
78
78
79
79
If the list does not include sqlite3-ruby, do <code>sudo gem install sqlite3-ruby</code> in Terminal app.
80
80
81
-
**SQLite Manager Firefox add-on**
82
-
83
-
Step 1 is [<http://www.mozilla.com/en-US/> install Firefox]. Even if it's already installed, you may need to upgrade; the add-on requires 3.5 or greater. ([How to find out which version of Firefox you have](how_to_find_out_which_version_of_firefox_you_have))
84
-
85
-
Install the SQLite Manager Firefox add-on.
86
-
87
-
* Open Firefox
88
-
89
-
* Under the Tools menu, select Add-Ons
90
-
91
-
* Click Get Add-Ons at the top of the small window that comes up
92
-
93
-
* In the search box, enter "SQLite" without the quotes
94
-
95
-
* The first search result should be SQLite Manager.
96
-
* If SQLite Manager is not in the search results, you probably have a version of Firefox that is too old. [<http://www.mozilla.com/en-US/> Install a newer version of Firefox] and then try again to install the add-on.
97
-
98
-
* Click the "Add to Firefox..." button.
99
-
100
-
* Click "Install" in the small window that comes up
101
-
102
-
* Click "Restart Firefox" in the add-ons window to complete the install. This will preserve the windows you have open, so it should bring you right back to this page.
103
-
104
-
* Once Firefox has restarted, look under the Tools menu. SQLite Manager should be one of the options.
105
-
106
81
MARKDOWN
82
+
83
+
link "install_sqlite_manager"
84
+
107
85
end
108
86
109
87
step "Install KomodoEdit " do
@@ -115,23 +93,19 @@ step "Other required libraries " do
Make sure you can do everything in the following sections of the [<http://wiki.devchix.com/index.php?title=Server_2003> Windows install directions] (from "Create a Test Application" onwards). Wherever it says "open git bash", substitute "open Terminal."
124
-
125
-
* [Server_2003#Create_a_test_application|Create a test application](server_2003_create_a_test_application_create_a_test_application)
126
-
127
-
* [Server_2003#Create a model|Create a model](server_2003_create_a_model_create_a_model)
128
-
129
-
* [Server_2003#Check test_app in to Local Git|Check test_app in to Local Git](server_2003_check_test_app_in_to_local_git_check_test_app_in_to_local_git)
96
+
end
130
97
131
-
* [Server_2003#Create_an_ssh_public_key|Create an ssh public key](server_2003_create_an_ssh_public_key_create_an_ssh_public_key)
98
+
step "Create an SSH key" do
99
+
link "create_an_ssh_key"
100
+
end
132
101
133
-
* [Server_2003#Create a Heroku Account|Create a Heroku Account](server_2003_create_a_heroku_account_create_a_heroku_account)
102
+
step "Create a Heroku account" do
103
+
link "create_a_heroku_account"
104
+
end
134
105
135
-
* [Server_2003#Deploy test_app to Heroku|Deploy test_app to Heroku](server_2003_deploy_test_app_to_heroku_deploy_test_app_to_heroku)
Copy file name to clipboardExpand all lines: cases/installfest/osx_snow_leopard.step
+1-42Lines changed: 1 addition & 42 deletions
Original file line number
Diff line number
Diff line change
@@ -49,49 +49,9 @@ step "Verify successful installation " do
49
49
result "3.0 (or something???)"
50
50
end
51
51
52
-
verify "gems" do
53
-
54
-
console "gem list --local"
55
-
56
-
result <<-PRE
57
-
*** LOCAL GEMS ***
58
-
59
-
actionmailer (2.3.9)
60
-
actionpack (2.3.9)
61
-
activerecord (2.3.9)
62
-
activeresource (2.3.9)
63
-
activesupport (2.3.9)
64
-
builder (2.1.2)
65
-
configuration (1.1.0)
66
-
cucumber (0.6.2)
67
-
cucumber-rails (0.2.4)
68
-
diff-lcs (1.1.2)
69
-
gherkin (1.0.30)
70
-
heroku (1.8.0)
71
-
json (1.2.0) or json_pure (1.4.3)
72
-
launchy (0.3.5)
73
-
nokogiri (1.4.1)
74
-
polyglot (0.3.0) (optional)
75
-
rack (1.1.0)
76
-
rails (2.3.5)
77
-
rake (0.8.7)
78
-
rest-client (1.3.1)
79
-
rspec (1.3.0)
80
-
rspec-rails (1.3.2)
81
-
sqlite3-ruby (1.2.5)
82
-
term-ansicolor (1.0.4)
83
-
treetop (1.4.3) (optional)
84
-
webrat (0.7.0)
85
-
PRE
86
-
end
87
52
end
88
53
89
-
next_step "create_a_test_application" do
90
-
91
-
note <<-MARKDOWN
92
-
**Finally**, make sure you can do everything in the Windows install directions. Wherever it says "git bash", you can mentally substitute "Terminal" - git bash is the name for the Terminal-equivalent program on Windows. I know, strange name!
93
-
MARKDOWN
94
-
end
54
+
next_step "create_a_test_application"
95
55
96
56
step "Congratulations!" do
97
57
note "You have everything you need to write a Ruby on Rails application."
@@ -107,7 +67,6 @@ MARKDOWN
107
67
end
108
68
109
69
step "Destroy the heroku app" do
110
-
111
70
note "Go to <https://heroku.com/myapps> and then click on your app name. Scroll to the bottom of the page and click Destroy App."
Copy file name to clipboardExpand all lines: cases/installfest/osx_snow_leopard_gcc.step
+6-19Lines changed: 6 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -179,24 +179,9 @@ We'll be using the KomodoEdit text editor during the workshop, though you are fr
179
179
MARKDOWN
180
180
end
181
181
182
-
step "Create an ssh public key " do
183
-
note <<-MARKDOWN
184
-
185
-
You'll need one of these to create your Heroku account in the next section.
186
-
187
-
* Open up a new Terminal window.
188
-
<pre>ssh-keygen -C "Your Actual Email" -t rsa</pre> (email should match git config setting)
189
-
190
-
* Hit enter to accept default location for ssh key.
191
-
192
-
* Hit enter to accept blank passphrase (if computer is shared with other people, as in a work laptop, you should create a passphrase). Hit enter again to accept blank passphrase (or enter passphrase again).
193
-
194
-
* [Output of ssh-keygen command](output_of_ssh_keygen_command)
195
-
196
-
* Your brand-new public key is now stored at <code>~/.ssh/id_rsa.pub</code>.
197
-
198
-
MARKDOWN
199
-
end
182
+
step "Create an ssh public key" do
183
+
link "create_an_ssh_key"
184
+
end
200
185
201
186
step "Create a Heroku Account " do
202
187
link "create_a_heroku_account"
@@ -239,7 +224,9 @@ If "rails server" starts up with no errors, you're golden! It'll look something
239
224
</pre>
240
225
If it does, congratulations! You've successfully installed Ruby AND Rails and started your server. ([Ruby and Rails 3 Diagnostics|Here are some more diagnostics to try if it's not so smooth.](ruby_and_rails_3_diagnostics_here_are_some_more_diagnostics_to_try_if_it_s_not_so_smooth_)) Let's check it in the browser.
241
226
242
-
* In your browser, go to <http://localhost:3000> ([<http://wiki.devchix.com/images/successful-rails-install.jpg> screenshot of successful install])
0 commit comments