Skip to content

Instantly share code, notes, and snippets.

@pommi
Last active December 31, 2015 06:09
Show Gist options
  • Save pommi/7946123 to your computer and use it in GitHub Desktop.
Save pommi/7946123 to your computer and use it in GitHub Desktop.
Upload, unpack and start an MDA
root@host:~# curl -XPOST -F model=@project.mda http://172.17.0.5:5000/upload/
File uploaded.
root@host:~# curl -XPOST http://172.17.0.5:5000/unpack/
Runtime downloaded and Model unpacked.
root@host:~# # set config after unpack (unpack will overwrite your config)
root@host:~# curl -XPOST -d "DatabaseHost=172.17.0.4:5432" -d "DatabaseUserName=docker" -d "DatabasePassword=docker" -d "DatabaseName=docker" http://172.17.0.5:5000/config/
Config set.
root@host:~# curl -XPOST http://172.17.0.5:5000/start/
App started. (Database updated)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment