Topic: Ruby Noob Setting up Dev Environment. Can't connect to Localhost:3000
I'm using Mac OSX Lion (10.7.4) and have installed Ruby 1.9.3p234 and Rails 3.2.5. Xcode 4.3.2 Build version 4E2002
Niklas-Kunkels-MacBook-Pro:~ test$ sqlite3 -version 3.7.7 2011-06-25 16:35:41 8f8b373eed7052e6e93c1805fc1effcf1db09366
I also ran the following:
Niklas-Kunkels-MacBook-Pro:~ test$ gem install sqlite3 which output a bunch of stuff including: Successfully installed sqlite3-1.3.6
So now I'm not sure whether I'm using sqlite3 version 3.7.7 or 1.3.6
the second however is just a gem for Ruby, so maybe it's the gem version 1.3.6?
In either case, after creating a railsproject called FirstApp and I start up rails server, however when then trying to connect to http://localhost:3000 nothing comes up.
I've tried telnet(ing) to localhost 3000 and got the following output:
Niklas-Kunkels-MacBook-Pro:RailsProjects test$ telnet localhost 3000 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused Trying ::1... telnet: connect to address ::1: Connection refused Trying fe80::1... telnet: connect to address fe80::1: Connection refused telnet: Unable to connect to remote host
Would someone mind explaining in fairly simple terms what the problem is and how I can fix it.
Alright so I ended up running the following series of commands:
$ gem install bundler
$ gem install mysql2
and then reinstalled rails
$ gem install rails
I then cd'd into my projects directory and used the command
$ bundle install
and now all of a sudden when I connect to localhost I get the Welcome Aboard.
So now I guess it's "fixed" but I would like to know what the reason is that it works now and didn't before.
Do I have to run the "bundle install" command every time I create a new project?
Last edited by NKunkel (2012-06-05 04:28:28)