0

"./scorpio -Dhttp.port=10000 & "

enter image description here

doesn't work too enter image description here

I use "activator dist" to deploy my play project,and i start my application as the fisrt pic, ./scorpio -Dhttp.port=10000 -Dplay.evolutions.db.default.autoApply=true -Dplay.crypto.secret=QCY?Anfk?aZ?iwrNwnxIR6 how to start it so the application will run on background

HaveNoDisplayName
  • 8,291
  • 106
  • 37
  • 47
zhicheng
  • 36
  • 5

3 Answers3

0

It is not play related. It is about how to start any other java / shell application in the background.

It is already answered for example here: How to run a shell script in the background and get no output

Community
  • 1
  • 1
0

As @Micahl mentioned it's not play related but any script running on linux. nohup is your friend. read more here

nohup ./scorpio -Dhttp.port=10000 >/dev/null 2>&1

make sure the application logging is configured properly to a file as the above command will redirect all stdout to /dev/null.

Community
  • 1
  • 1
LiorH
  • 18,524
  • 17
  • 70
  • 98
0

If you are running play app in production I am recommending to build a system package with sbt-native-packager. Builded packages use system level services to run app in background, have proper configuration and have convenient versioning tools.

mgosk
  • 1,874
  • 14
  • 23