Deploying angular2 project on go daddy server

National News picture National News · Jan 28, 2017 · Viewed 16.2k times · Source

I have an angular-2 project running on my local host. I want to deploy it to GoDaddy server. I can't install node, npm on GoDaddy server. So my question is how can I run my angular-2 project on GoDaddy server. Thanks

Answer

manojtc picture manojtc · Jan 28, 2017

Install Angular CLI if you don't have it already.

npm install -g angular-cli

Then build using the command -

ng build

This will create a /dist directory with the production build of your application. Just copy the contents of /dist to your hosting provider (using FTP, SCP etc.).

Refer - https://github.com/angular/angular-cli