My IP address is 10.0.5.140. In my computer, I can run my Rails source with URL:localhost:8888
. But I want to run my source in other computers, so I must change localhost:8888
to 10.0.5.140:8888
. How can I config that?
Asked
Active
Viewed 36 times
-1
Spirit
- 97
- 1
- 6
1 Answers
0
You can run starting server with binding option rails s --binding 0.0.0.0
Linh Nguyen
- 845
- 7
- 22
-
I know this way bro, but I want to config in my source :) Anyway, I found the solution. You can config in `config/puma.rb` with this line `set_default_host '10.0.5.140'` – Spirit Nov 04 '19 at 05:40