Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloud9 Rails Server Command Not Set to Correct Port and IP to Preview #86

Open
HFisher1212 opened this issue Apr 19, 2016 · 2 comments
Open

Comments

@HFisher1212
Copy link

HFisher1212 commented Apr 19, 2016

cloud9msg
In LR B2 Ch6 "Viewing in the Web Browser" , when using the Cloud9 Hosting browser terminal the Preview window does not show the webpage created when command 'rails s' (or server) starts the rails server. For Cloud9, the server start line should be changed to 'rails s -p $PORT -b $IP'.

@kwibus2000
Copy link

Is that an issue? You have to know that when you use Cloud9. Is it not mentioned in the book?
Perhaps a 'tip' would be a good idea?

@aspsa
Copy link

aspsa commented Mar 7, 2017

In Cloud 9 start the rails server using the following command:

rails s -p $PORT -b $IP

To view your development Rails app in a web browser:

  1. Start the Rails server (see previous command).
  2. Click on 'Share' at the top to open the 'Share this workspace' dialog box.
  3. Click on the URL in the 'Application:' text field.
  4. Select 'Open' in the context menu that opens, which opens your Rails app in a browser window.

You should now see an instance of your development Rails web app running in the web browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants