剑圣环境配置
我正在尝试弄清楚如何在生产中运行 Juggernaut 服务器 - 假设我能够在开发和生产环境中为服务器配置不同的端口,因为我无法控制生产环境中的端口。并且还假设服务器将以“分离”模式启动?
非常感谢任何建议。
I'm trying to figure out how to run Juggernaut server in production – assuming that I would be able to configure different ports for the server in the development and production environment, because I can't control the port in my production environment. And also assuming that the server would be to start in "detached" mode?
Any advice much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
万一您打算继续使用 Juggernaut,尽管已弃用,但安装和运行它相当简单 - 您只需使用 npm 来使用 github 页面上的说明即可,它们工作得很好。 Juggernaut CLI 脚本允许您配置端口,因此也没有问题。
Just in case you are planning to continue using Juggernaut despite deprecation, getting it up and running is fairly straightforward - you can just use the instructions on the github page using npm and they work pretty well. The Juggernaut CLI script lets you configure a port, so no problem there either.
永远结帐。它使后台 javascript 应用程序变得非常简单... https://github.com/nodejitsu/forever
Checkout forever. It makes backgrounding javascript apps pretty simple... https://github.com/nodejitsu/forever