Skip to content

Instantly share code, notes, and snippets.

@apcera-code
Created September 13, 2016 16:26
Show Gist options
  • Save apcera-code/e6740ada5b30de5a30bbb9ca94b37512 to your computer and use it in GitHub Desktop.
Save apcera-code/e6740ada5b30de5a30bbb9ca94b37512 to your computer and use it in GitHub Desktop.
Once you have done the first deployment manually or you have already in the platform the packages for the 2 components of the application (the server and the client), you can simply deploy a manifest file that describe the topology of the application with a single command: apc manifest deploy cast-microservice.json
Deploying manifest...
[manifest] -- Deploy -- execution started
[manifest] -- Deploy -- looking up "package::/sandbox/simone::cast-client"
[manifest] -- Deploy -- looking up "package::/sandbox/simone::cast-server"
[manifest] -- Deploy -- checking if policy allows binding "job::/sandbox/simone::castclient" to "service::/sandbox/simone::nats-server"
[manifest] -- Deploy -- checking if policy allows binding "job::/sandbox/simone::castserver" to "service::/sandbox/simone::nats-server"
[manifest] -- Deploy -- skip creating "service::/sandbox/simone::nats-server" since it already exists
[manifest] -- Deploy -- creating "job::/sandbox/simone::castclient"
[manifest] -- Deploy -- created "job::/sandbox/simone::castclient"
[manifest] -- Deploy -- creating "job::/sandbox/simone::castserver"
[manifest] -- Deploy -- created "job::/sandbox/simone::castserver"
[manifest] -- Deploy -- binding "job::/sandbox/simone::castclient" to "service::/sandbox/simone::nats-server"
[manifest] -- Deploy -- binding "job::/sandbox/simone::castserver" to "service::/sandbox/simone::nats-server"
[manifest] -- Finish -- execution was successful
╭──────────────────────────────────┬─────────┬───────────┬────────┬────────╮
│ Job FQN │ Status │ Instances │ Subnet │ Errors │
├──────────────────────────────────┼─────────┼───────────┼────────┼────────┤
│ job::/sandbox/simone::castclient │ started │ 1 │ N/A │ │
│ job::/sandbox/simone::castserver │ started │ 1 │ N/A │ │
╰──────────────────────────────────┴─────────┴───────────┴────────┴────────╯
Success!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment