Runtime components : Client engine : Using the client engine service in a Vue project : Deploying the UDTTVueProject application
  
Deploying the UDTTVueProject application
When you have built the UDTTVueProject application, you can deploy the application into a different Eclipse development environment, for example, an environment that includes tools for developing Vue and Vuex applications, or you can deploy the application into your production environment.
Deploying the UDTTVueProject application into a different development environment
Complete the following steps to deploy the UDTTVueProject application into a different development environment.
1 Deploy and start the BTTServerProject application, see Setting up and running the BTTServerProject application.
2 Set up the UDTTVueProject application by completing the following steps:
a Import the project into Eclipse.
b Enable CORS by editing the following settings in ../UDTTVueProject/public/unicomsi/btt/clientengine/Configure.js:
i Set CORS to true for cross domain access.
ii Set _BASE to the base url of the BTTServerProject application.
For example:
CORS : true
var _BASE = "http://<base_URL>:8080/BTTServerProject/";
Deploying the UDTTVueProject application into a production environment
When you have built the UDTTVueProject application, you can use the following steps to deploy the application to your production environment.
If you are deploying the UDTTVueProject application into a production environment, you have two options:
Integrate UDTTVueProject application with BTTServerProject
1 Copy the build output from the UDTTVueProject application to ../BTTServerProject/WebContent/.
2 Deploy the BTTServerProject application to an application server, for example IBM WebSphere Application Server.
3 Launch the application in a browser by using the following URL: http://<host>:<port>/BTTServerProject/index.html
Use UDTTVueProject application with reverse proxy
1 Deploy the build output to a web server, for example Apache.
2 Deploy the BTTServerProject application to an application server, for example IBM WebSphere Application Server.
3 Setup a reverse proxy server, for example Nginx.
See:
Building the UDTTVueProject application
Using the client engine service in a Vue project