skinny-framework / skinny-framework

:monorail: "Scala on Rails" - A full-stack web app framework for rapid development in Scala

Home Page:https://skinny-framework.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to define standalone mode jar option name

alswl opened this issue · comments

For current version of skinny, standalone mode jar starts with options like this skinny.port etc.

Is it possible replace skinny.port by spring.port ?

Because in my use case, I must use a PaaS platform only support start app with Spring Boot (or Node.js).

Thanks.

Thanks for you reply.

Another question: is it possible to rename app.profile or skinny.profile in standalone jar option.

I found modify this configuration is hard, skinny.micro.base.EnvAccessor is extends with SkinnyMicroBase and it cannot to be modified.

I found a solution:

System.setProperty("skinny.profile", System.getProperty("spring.profiles.active"))

@seratch

After modified assembly in skinny, the packaged fatjar is always launch in skinny.standalone.JettyLauncher.

I unzip the fat jar and found the MANIFEST.MF

Main-Class: skinny.standalone.JettyLauncher

Soloved: should remove project/_skinny_assembly.sbt, then run ./skinny package:standalone