如何在端口 4000 上创建新服务器,因为服务器默认在端口 3000 自动创建。
Vishal_Kaushik
(Vishal Kaushik)
1
rishabh
2
服务器可以通过 -p 选项在其他端口上运行,因此运行 rails s -p 4000 即可实现。
相關主題
| 話題 | 回覆 | 觀看 | 活動 | |
|---|---|---|---|---|
| Change unicorn port from 3000 in development | 11 | 6900 | 2021年二月26日 | |
| The site setting `port` can no longer be set based on Rails environment | 1 | 777 | 2018年一月2日 | |
| Bundle exec rails server --binding=0.0.0.0 | 3 | 3560 | 2021年三月22日 | |
| Issue in setup discourse on ubuntu server | 9 | 1748 | 2019年五月22日 | |
| Hyperlink with port number not working | 7 | 733 | 2022年四月3日 |