I want to run my Rails server on different ports with different addresses. I need to run it on port 8888
and address 10.XX.XX.XXX
for all time, in other words, once I start the server, it should run until the server is not stop [sic]. I am running this on Ubuntu machine. Please help me resolve this problem.
Asked
Active
Viewed 1,039 times
-1

sawa
- 165,429
- 45
- 277
- 381
-
1You could try to run it on `rails s -p 8888` [post](http://stackoverflow.com/a/9263951/2581266) – Papouche Guinslyzinho Nov 21 '15 at 09:19
-
Use `rails s -p 8888 -b 10.xx.xx.xxx`. Of course such address must be locally available. If it doesn't work please dump here this command's output to recognize by us what 'not working' means. – Mareq Nov 21 '15 at 10:11
2 Answers
1
Try this:
rails s -p 8888 -b 10:xx:xx:xx
And if you want to run the server in background, then use
rails s -p 8888 -b 10:xx:xx:xx -D

Radix
- 2,527
- 1
- 19
- 43
0
You could try to run it on rails s -p 8888
and it will be available on your server address on port xxx.xx.xxx.xx:8888

Papouche Guinslyzinho
- 5,277
- 14
- 58
- 101