Skip to content

Instantly share code, notes, and snippets.

@DavidMah
Created February 18, 2013 04:02
Show Gist options
  • Select an option

  • Save DavidMah/4975050 to your computer and use it in GitHub Desktop.

Select an option

Save DavidMah/4975050 to your computer and use it in GitHub Desktop.
gem install rails
rails new experiment
cd experiment
gem install therubyracer
echo 'gem "therubyracer", :require => "v8"' >> Gemfile
ifconfig | grep "inet 128" | awk '{ print $2 }' # Your IP
rails server
# Now you can hit <Your Ip>:3000 in the web browser
@mc-Corkell

Copy link
Copy Markdown

Sweet! I wasn't exactly sure what IP to put in so I ran
ifconfig | grep "inet 128" | awk '{print inet 69.91.156.108}'

Which is just the UW IP and I'm not sure it worked because when I looked at the ifconfig file it wasn't changed and when I looked at it in the browser it was still at the 128 address, but maybe therubyracer was all I needed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment