Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Steven Worley3,615 Points
localhost:3000 "This webpage is not available."
-bash: bin/rails: No such file or directory
So, I ran:
Usage: rails new APP_PATH [options]
-List of options truncated to take up less space.
Description: The 'rails new' command creates a new Rails application with a default directory structure and configuration at the path you specify.
You can specify extra command-line arguments to be used every time 'rails new' runs in the .railsrc configuration file in your home directory. Note that the arguments specified in the .railsrc file don't affect the defaults values shown above in this help message.
Example: rails new ~/Code/Ruby/weblog
This generates a skeletal Rails installation in ~/Code/Ruby/weblog. See the README in the newly created application to get going.
However, when I type in localhost:3000 into my browser, no connection is made. Any ideas what's happening here?
Maciej Czuchnowski36,437 Points
Did you go into the folder and run
bundle install after creating the new app using
rails new odot?
Steven Worley3,615 Points
Doh! I created my own ODOT folder without realizing that
rails new odot would create one for me. Therefore, I thought I was in the right odot folder, not realizing I have two odot folders.
Charles-Eric Legras4,917 Points
I have this kind of message while running bin/rails server
charlou:odot Charlou$ bin/rails server
=> Booting WEBrick
=> Rails 4.0.2 application starting in development on http://0.0.0.0:3000
rails server -h for more startup options
=> Ctrl-C to shutdown server
[2015-02-16 17:43:38] INFO WEBrick 1.3.1
[2015-02-16 17:43:38] INFO ruby 2.0.0 (2014-05-08) [universal.x86_64-darwin14]
[2015-02-16 17:43:38] WARN TCPServer Error: Address already in use - bind(2)
initialize': Address already in use - bind(2) (Errno::EADDRINUSE)
block in create_listeners'
block in <top (required)>'
from bin/rails:4:in `<main>'