Deploy Application

How to deploy your application

Code Bundling #

Development vs Production mode #

When deploying your application, make sure that you bundled ActiveUI in production mode. This will ensure that the code is compressed, obfuscated and will disable all assertions and costly developement warnings.

Application Server #

Where to deploy? #

There is no server component to ActiveUI: once compiled, it is reduced to a set of static HTML, CSS and JavaScript files. This means that any application server able to serve static files can serve ActiveUI.

As to where to deploy ActiveUI, here are the different possibilities architecture-wise:

  • Serve ActiveUI in the same server that serves ActivePivot server: we usually recommend such setup for quick deployment, debugging purpose or when there is only one existing ActivePivot application.
  • Serve ActiveUI in a separate server, distinct from the ones hosting ActivePivot Server: this option is best suited for complex architecture where there are multiple ActivePivot servers involved (distributed or not), so that restarting a server would not interrupt the communication with other backends. If all those servers share the same Content Server, it can be relevant to serve ActiveUI from that Content Server.

Gzipping #

Whichever application server is used (Jetty, Tomcat…), please make sure that compression is enabled for both:

  • the server hosting ActiveUI
  • the server hosting ActivePivot Server

This will ensure that static files such as ActiveUI HTML, CSS and JavaScript resources, but also results from REST calls and data sent through WebSockets from ActivePivot server are compressed.