如何在端口 4000 上创建新服务器,因为服务器默认在端口 3000 自动创建。
Vishal_Kaushik
(Vishal Kaushik)
1
rishabh
2
服务器可以通过 -p 选项在其他端口上运行,因此运行 rails s -p 4000 即可实现。
相关话题
| 话题 | 回复 | 浏览量 | 活动 | |
|---|---|---|---|---|
| Change unicorn port from 3000 in development | 11 | 6779 | 2021 年2 月 26 日 | |
| The site setting `port` can no longer be set based on Rails environment | 1 | 747 | 2018 年1 月 2 日 | |
| Bundle exec rails server --binding=0.0.0.0 | 3 | 3505 | 2021 年3 月 22 日 | |
| Issue in setup discourse on ubuntu server | 10 | 1659 | 2019 年6 月 21 日 | |
| Hyperlink with port number not working | 10 | 693 | 2022 年4 月 18 日 |