Skip to content

Commit 5401876

Browse files
committed
Explain rails s runs forever and blocks input
Sometimes people will try to type commands into the terminal when they have a server running and get confused as to why nothing is happening.
1 parent 31b06eb commit 5401876

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sites/en/intro-to-rails/running_your_application_locally.step

+6-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ end
66
steps do
77
step do
88
console "rails server"
9+
message "This will print some stuff and stay running forever, printing more stuff
10+
every time you visit a page in your app."
911
end
1012
step do
1113
text "Point your web browser to "
@@ -14,7 +16,10 @@ steps do
1416
end
1517

1618
step do
17-
message "When at the terminal with your running rails server, type **Control-C** to stop rails server. You can do this now."
19+
message "While the server is running, whatever you type in that terminal tab
20+
will be ignored."
21+
message "To get back to the terminal, you can stop the server by typing
22+
`Control-c`."
1823
result <<-STOPPING_RAILS_SERVER
1924
^C[#{Time.now.strftime("%Y-%m-%d %H:%M:%S")}] INFO going to shutdown ...
2025
[#{Time.now.strftime("%Y-%m-%d %H:%M:%S")}] INFO WEBrick::HTTPServer#start done.

0 commit comments

Comments
 (0)