1. ang2a is subdirectory name in localhost.
Command is..
c:\Users\DEESOFT07\myAng2\src>ng build --prod --base-href /ang2a/
2. To Upload Direct Domain or Sub-domain on server.
Command is..
c:\Users\DEESOFT07\myAng2\src>ng build --prod
3. Publish folder create in angular2 project will be dist folder.
Then copy from dist folder and paste or upload on server or localhost
4. You can check in published (dist) folder and check Index.html Page
Command is..
c:\Users\DEESOFT07\myAng2\src>ng build --prod --base-href /ang2a/
2. To Upload Direct Domain or Sub-domain on server.
Command is..
c:\Users\DEESOFT07\myAng2\src>ng build --prod
3. Publish folder create in angular2 project will be dist folder.
Then copy from dist folder and paste or upload on server or localhost
4. You can check in published (dist) folder and check Index.html Page
No comments:
Post a Comment