As you know, it’s a servlet application
Skinny applications run on any Servlet container.
So you just need to build a war file and deploy it to your production servers.
Packaging war file
It’s very simple to do that. Just
You will see the created war file under
If you want to deploy the war file to a Maven repository (e.g. Artifactory), just run
./skinny publish after customizing the build settings file.
Creating stand alone app
What’s more, you can easily create a stand alone jar file by just running the following command:
After a while, you will get a standalone jar file.
java -jar standalone-build/target/scala-2.10/skinny-standalone-app-assembly-0.1.0-SNAPSHOT.jar
You can pass configuration via system properties. Otherwise, it’s also possible to use environment variables.
java -jar -Dskinny.port=9000 -Dskinny.env=production -Dskinny.prefix=/foo/ \ standalone-build/target/scala-2.10/skinny-standalone-app-assembly-0.1.0-SNAPSHOT.jar
The following options are available to configure your Skinny applications. You can pass the following values from environment variables or system properties.
skinny.env or app.env or SKINNY_ENV or APP_ENV
Default value is “development”. If
skinny.env system property is “production”, application load the “production” settings from “src/main/resources/application.conf”.
- sys.props.get(“skinny.env”) or sys.props.get(“app.env”)
- sys.env.get(“SKINNY_ENV”) or sys.env.get(“APP_ENV”)
You can access the value via
skinny.SkinnyEnv in application.
skinny.port or SKINNY_PORT
This value is only for stand alone apps. Default value is 8080. You can customize the port number on which the stand alone app server listens.
skinny.prefix or SKINNY_PREFIX
This value is only for stand alone apps. Default value is “/”. You can customize the context path for the servlet app.