Deploy a Standalone App
There are two ways to deploy a standalone App Studio search interface:
-
Create an app with an embedded Tomcat web server
This deployment type has an embedded Tomcat web server and is ready to deploy in a production environment. Previously, this was referred to as a "self-contained deployment."
-
Create an executable Java JAR file
This is a JAR package. Previously, this was referred to as a "self-executing deployment."
Embedded Tomcat web server
Package your app as a standalone app for deployment to a production server. The standalone app embeds an Apache Tomcat servlet container.
Unix or MacOS:
./app-studio dist
Windows:
app-studio.bat dist
Standalone app directory
Unix or MacOS:
The standalone app for deployment is in the app-name/search-app-standalone
directory.
search-app-standalone/
README.md
app/
build/
config/
keystore.jks
lib
search-app-start.bat
search-app-stop.bat
search-app-stop.ps1
search-app.sh
Windows:
The standalone app for deployment is in the app-name\search-app-standalone
directory.
search-app-standalone\
README.md
app\
build\
config\
keystore.jks
lib
search-app-start.bat
search-app-stop.bat
search-app-stop.ps1
search-app.sh
The search-app-project.zip
is a snapshot of your project at the time you compiled the application.
Executable Java JAR file
In this deployment type, your search interface runs within the Java runtime environment (JRE).
A downloaded project comes with an app-studio
script that creates a JAR file.
-
In a shell window, switch to your project directory:
cd /path/to/project-directory
-
Create the JAR file:
Unix and MacOS:
./app-studio package
Windows:
app-studio.bat package
The script creates the executable JAR file in the dist
directory of your project:
search-app-latest.x.jar
Running an executable JAR file
java -jar search-app-latest.x.jar