I'm currently learning rails following this tutorial: https://www.railstutorial.org/book/beginning#sec-the_hello_application
Here's what I've done.
rails new hello_world
to create a new rails application. rails new sample_app
rails server -b $IP -p $PORT
sample_app
application. How do I specify which application I want to deploy?
Make sure you are in the right directory. You have created two applications in the same directory, so make sure you are starting the server from /workspace/hello_world
You need to navigate to Cloud9/hello_world
to run the server on it.
Or Cloud9/sample_app
to run the server on it.
You might have created sample_app inside hello_world in which case to run it you will need to navigate to Cloud9/hello_world/sample_app
to run it on the server.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.