Skip to content

Instantly share code, notes, and snippets.

@coldclimate
Created November 29, 2014 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coldclimate/7eee74748750ab51c6e7 to your computer and use it in GitHub Desktop.
Save coldclimate/7eee74748750ab51c6e7 to your computer and use it in GitHub Desktop.
Hello World in Rails
vagrant@vagrant-ubuntu-trusty-64:/vagrant/helloworld$ history
1 sudo apt-get update
2 sudo apt-get install ruby
3 ruby -v
4 sudo apt-get install rubygems
5 gem install rails
6 sudo gem install rails (cancelled - wondered if I should use the version in the tutorial)
7 sudo gem install rails -v 4.2.0.rc1 (also failed)
8 sudo gem remove rails
9 sudo gem install rails (might as well just check)
10 sudo apt-get install ruby1.9.1-dev (props to @jtopper)
11 sudo gem install rails (failed)
12 gem install rdoc (I don't understand why rdoc did not install from the command above)
13 sudo gem install rdoc (oh, needs permissions)
14 sudo gem install rails (success!)
15 history
16 ls
17 cd /vagrant/
18 ls
19 rails new helloworld (bundle install failed on the end)
20 sudo apt-get install libsqlite3-dev
21 bundle install (in the wrong directory)
22 ls
23 cd helloworld/
24 bundle install (success!)
25 rails server (failed)
26 sudo gem install therubyracer (failed)
27 sudo apt-get install build-essentials (bad spelling - every time)
28 sudo apt-get install build-essential
29 sudo gem install therubyracer (sucess)
30 rails server (failed - rage rage rage)
31 sudo apt-get install libv8-dev
32 rails server (failed)
33 vi Gemfile (uncommend therubyracer line)
34 bundler install (success)
35 rails server (sucess)
36 history
37 cd ..
38 vi Vagrantfile (add port forwarding then restart the box)
39 exit
40 cd /vagrant
41 cd helloworld/
42 rails server (success!)
43 history
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment