user2662882
user2662882

Reputation: 195

Building angular app for production

I am new to angular.I have just created an app using node-oracledb to connect to oracle db and fetch data. The app is working. Now i need to move the project to production, what i need to do to built the app for production.

Upvotes: 1

Views: 127

Answers (2)

Raja Mohamed
Raja Mohamed

Reputation: 1026

Build production package using this command (AngularCli project),

ng build --aot --prod

--aot flag will increase the performance of the build.

This command will generate new folder by name of dist (distribution folder). Your dist folder is your final build.

If you want to deploy in Apache server then do the following steps.

  1. Create new Dynamic webproject in eclipse or any other IDE.
  2. Copy dist folder Files and past in Dynamic web project's WebContent folder.
  3. Export the project as war file and deploy in Apache server.

Upvotes: 0

Carsten
Carsten

Reputation: 4208

If you are using Angular-cli, it's:

ng build --prod

You can read more in the angular-cli Wiki

Upvotes: 3

Related Questions