Base solution for your next web application
Open Closed

Publish the ng-2 version app (client and server separately) #2357


User avatar
0
sampath created

Hi,

Can you please tell me how to publish the ng-2 version app ? I need to publish client and server separately. Please share a doc if you have about mentioning this. Thanks.


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @sampath,

    If you want to work in a single solution but want to deploy client and server apps seperately,

    • First, you need to ignore Publish Configuration section of this document <a class="postlink" href="https://aspnetzero.com/Documents/Merge-Angular-Client-Server">https://aspnetzero.com/Documents/Merge- ... ent-Server</a>.
    • Then, you can publish server app using Visual Studio's regular publish.
    • In order to publish Angular 2.x application, you need to use angular-cli's build, see <a class="postlink" href="https://github.com/angular/angular-cli#creating-a-build">https://github.com/angular/angular-cli#creating-a-build</a>. You can then use files created by angular-cli in dist folder.

    I hope this helps.

  • User Avatar
    0
    sampath created

    Hi ismcagdas,

    Actually, I have to work on 2 solutions due to the request of my client. Hope then the steps are the same no ? I mean I have to follow the same steps which you have mentioned above no ? Thanks.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @sampath,

    Yes, if you are working on two different solutions, steps are same. Use Visaul Studio's publish for server side and angular-cli build for angular 2.x client side.