sasjs / cli

Command line interface for creating, compiling, and building SAS® projects
https://cli.sasjs.io
MIT License
37 stars 5 forks source link

add web app to sasjs deploy command console output #556

Closed allanbowe closed 3 years ago

allanbowe commented 3 years ago

Currently when doing a sasjs deploy we get a URL like below:

image

It would be a great user experience if the user can go straight to the deployed folder to verify. To make that happen, we need to formulate a URL, depending on the value of serverType, to either (SAS Viya):

$(serverUrl)/SASJobExecution?_path=$(appLoc)&_action=1063

or (SAS 9):

$(serverUrl)/SASStoredProcess?_path=$(appLoc)&_action=1063

In each relevant case, a web app will be launched. For Viya, the user will need to navigate, whilst for SAS 9 the user will be taken straight to the relevant folder.

We can add this as a final line (after ✔ Service pack has been successfully deployed.) as follows (note change from "Service pack to Build pack):

SAS 9:

✔ Build pack has been successfully deployed.
✔ https://sas.analytium.co.uk:8343/SASStoredProcess?_path=/Public/app/folder-navigator&_action=1063

SAS Viya:

✔ Build pack has been successfully deployed.
✔ https://sas.analytium.co.uk/SASJobExecution?_path=/Public/app/folder-navigator&_action=1063
allanbowe commented 3 years ago

Closing as we don't deploy service packs for sas 9