-
appupdate
Update the application.
The command line
A script that create a new deserver definition and upload the application. This definition will be the owner of the DataEase application. All parameters given are checked for for a value and used if it has one. If not the one in extra config file given will be used.
Parameters:
name The name given to definition on the DEDS server. deploymentserver The server we want to deploy to. Ex. http://127.0.0.1:81 for local host on port 81 username Username for logging in to your deployment server password Password for logging in to your deployment server repopath Path to local repo to update from reponame The name of the local repo [repoun] user name for local repo [repopw] password for local repo [extra] a file path to extra definition as JSON that will be used. The supported data is the same as for appcreatefromconfig script Returns JSON:
The scripts will as long as you have correct number of arguments and do not ask for supported arguments with a -h return a JSON string. This JSON should always have a "result" the that can hold "OK" or "Failed".
Examples
{ "result": "OK", "log": [ "Starting update app named: myapp on <a href="http://127.0.0.1:81" ,"="">http://127.0.0.1:81",</a> ... a lot of lines with what it was doing "Finished updating app named: myapp on <a href="http://127.0.0.1:81" ,"="">http://127.0.0.1:81",</a> ] }
All went well
{ "log": [ "Starting update app named: myapp on <a href="http://127.0.0.1:81" ,"="">http://127.0.0.1:81",</a> "Remote deployment server not running" ], "result": "Failed", "ds": "no update" }
Server not running
{ "log": [ "Starting update app named: myapp on http://127.0.0.1:81", "To old Deployment server. It is 4.0.1466 and should at least be: 4.0.1467" ], "result": "Failed", "ds": "old" }
Your script is old compared to the server, so you need to update your scripts
{ "msg": "Failed because: Some error message about what went wrong in the code from the exception", "log": [ "Starting update app named: myapp on <a href="http://127.0.0.1:81" "="">http://127.0.0.1:81"</a> ], "result": "Failed", "ds": "exception" }
A exception occurred in the script