Scala 在生产中启动 Play 服务器 [英] Scala start Play server in production
本文介绍了Scala 在生产中启动 Play 服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 EC2 上部署了一个 Play 2.0 应用程序,我使用 play start
启动应用程序,它在后台运行,我可以点击 Ctrl-D
和进程将继续在后台运行,但过一段时间(15 或 20 分钟?)后它就死了,不知道为什么.我通常在启动应用程序后退出 ssh 会话,我希望这不是原因.
I have a Play 2.0 app deployed on EC2 and I start the app with play start
and it runs in the background, I can hit Ctrl-D
and the process will continue to run in the background but then it dies after a while (15 or 20 mins?), not sure why. I usually exit the ssh session after starting the app, I'm hoping that's not the reason.
推荐答案
nohup play start
对我有用.
这篇关于Scala 在生产中启动 Play 服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文