How to run my-app in production mode with SBT

702 views
Skip to first unread message

Hannah J Swystun

unread,
Feb 21, 2017, 12:27:30 PM2/21/17
to Play Framework
Hello,

Im using SBT to run my apps in play framework, actually  i would like to run them in production mode ( by SBT because I m not using PLAY neither ACTIVATOR just SBT)

Is this explanation in the link below + sbt playGenerateSecret command line      is exhaustive or did I forget something else ?

https://www.playframework.com/documentation/2.5.x/Deploying#Using-the-SBT-assembly-plugin

thank you so much

Thibault Meyer

unread,
Feb 21, 2017, 12:34:43 PM2/21/17
to Play Framework
You can run sbt stage to compile your application. After compilation succeed, you can go to target > universal > stage. Just run bin/<your-app>

Hannah J Swystun

unread,
Feb 21, 2017, 12:43:54 PM2/21/17
to Play Framework
Hello THIBAULT,

By running BAT FILE inside BIN/ directory, the file desapeare fastly...

File Confi.txt not found !!!

Do you have any idea please ?

Thibault Meyer

unread,
Feb 21, 2017, 12:59:55 PM2/21/17
to Play Framework
Never seen this error. On Windows (I use Play 2.5.12), you will get the following error : "La ligne entrée est trop longue." (Input line too long), to fix it you have to edit .bat file with (line +/- 130)

set "APP_CLASSPATH=%APP_LIB_DIR%\..\conf\;%APP_LIB_DIR%\*"


Thibault Meyer

unread,
Feb 21, 2017, 1:01:32 PM2/21/17
to Play Framework
D:\Users\thiba\Documents\Programmation\io\identity\target\universal\stage>bin\identity
[info] application - Creating Pool for datasource 'default'
...

Hannah J Swystun

unread,
Feb 21, 2017, 1:26:54 PM2/21/17
to Play Framework
You are right about the error because me too i just translate it :) however,

I did not understand exactly these lines:

1- \..\conf   =>  do I have to substitute with URL to conf file ?
set "APP_CLASSPATH=%APP_LIB_DIR%\..\conf\;%APP_LIB_DIR%\*"

2- Did not understand if this is a command line ....

D:\Users\thiba\Documents\Programmation\io\identity\target\universal\stage>bin\identity
[info] application - Creating Pool for datasource 'default'
...

Le mardi 21 février 2017 17:27:30 UTC, Hannah J Swystun a écrit :

Hannah J Swystun

unread,
Feb 21, 2017, 1:34:09 PM2/21/17
to Play Framework
Sorry i do as you told me and it has created a new file named : RUNNING_PID
now what should i do to run it in production mode ?


Le mardi 21 février 2017 17:27:30 UTC, Hannah J Swystun a écrit :
Reply all
Reply to author
Forward
0 new messages