Scala start Play server in production

前端 未结 4 1878
無奈伤痛
無奈伤痛 2020-12-03 06:03

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 cont

4条回答
  •  萌比男神i
    2020-12-03 06:37

    I would suggest that you prepare the project deployment binary by using the stage command that the activator (formerly play) script takes. You can run that binary in the background, it can be found in the path which the second command in the code below shows.

    ./activator stage
    target/universal/stage/bin/project-name &
    

提交回复
热议问题