Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

nswag deploy & enviroments #6459


User avatar
0
rubengm created

Hi, can you know how can I run nswag after API deploy on PROD server? running a .bat file on server after deploy? Just for be sure that proxies are correctly generated... Thx,


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

    see the document: https://docs.aspnetzero.com/documents/zero/latest/Development-Guide-Angular#nswag

  • User Avatar
    0
    rubengm created

    thanks but may be I didn't ask with the correct words. I know how refresh.bat autogenerates the client proxy, but when you deploy on a server from source control If the API is deployed at the same time that angular, how can you guarantee that service proxy has the last API version? maybe running refresh.bat as a deployment step? Or Is there a better approach? Thanks,

  • User Avatar
    0
    maliming created
    Support Team

    Currently it is manual control.