Packaging and Deploying Web Applications

Use the Oracle JET tooling and third-party tools to package your Oracle JET web application and deploy it to any type of web or application server.

Packaging Web Applications

If you created your application using the tooling, use the Oracle JET command-line interface (CLI) to create a release version of your application containing your application scripts and applicable Oracle JET code in minified format.

  1. From a terminal prompt in your application’s root directory, enter the following command: ojet build --release.

    The command will take some time to complete. When it’s successful, you’ll see the following message: Build finished!.

    The command replaces the development version of the libraries and scripts in web/js/ with minified versions where available.

  2. To verify that the application still works as you expect, run ojet serve with the release option.

    The ojet serve --release command takes the same arguments that you used to serve your web application in development mode.

    ojet serve --release [--serverPort=server-port-number --serverOnly]

    Tip:

    For a complete list of options, type ojet help serve at the terminal prompt.

Deploying Web Applications

Oracle JET is a collection of HTML, JavaScript, and CSS files that you can deploy to any type of web or application server. There are no unique requirements for deploying Oracle JET applications.

Deployment methods are quite varied and depend upon the type of server environment your application is designed to run in. However, you should be able to use the same method for deploying Oracle JET applications that you would for any other client interface in your specific environment.

For example, if you normally deploy applications as zip files, you can zip the web directory and use your normal deployment process.