-1

I am going through the rails tutorial. I am on chapter 1, section 1.3.2. https://www.railstutorial.org/book/beginning#sec-the_hello_application

After I ran the command

rails server -b $IP -p $PORT

I see the following:

=> Booting Puma

=> Rails 5.0.0.1 application starting in development on http://0.0.0.0:8080

=> Run rails server -h for more startup options

Puma starting in single mode...

  • Version 3.4.0 (ruby 2.3.0-p0), codename: Owl Bowl Brawl

  • Min threads: 5, max threads: 5

  • Environment: development

  • Listening on tcp://0.0.0.0:8080

Use Ctrl-C to stop

The terminal says it is running on http://0.0.0.0:8080, but when I visit this URL I get the follow error:

ERR_ADDRESS_INVALID

I am completely new to Rails. What can I do to solve this?

Community
  • 1
  • 1
helpmeplz
  • 151
  • 1
  • 3
  • 11

1 Answers1

3

Do not try to access the project through the IP address and port number rails returns to you--it won't work!

Try rails server -b $IP -p $PORT

For further clarification check this link

The app will be running on http://[your_workspacename]-[your_username].c9users.io

DroidNoob
  • 1,123
  • 9
  • 21