Open Closed

nswag deploy & enviroments #6459


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)
  • 0
    maliming created

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

  • 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,

  • 0
    maliming created

    Currently it is manual control.