navy-clock-install
v1.1.2
Published
Navy Order to install a Clock project for deployment
Downloads
56
Readme
Clock Install Order
This is an Order which is used by Captains as part of the Navy deployment suite.
It does the following actions:
- Symlink the application build directory to its final location
- Generate upstart scripts for the applications services
- Run the Restart order on this captain
This order assumes that the following configuration keys have been added to the Admiral for the application you are trying to prepare:
- nodeVersion: Version of node this project should use to execute
- buildDir: Location of the directory containing your applications build directory
- services: Object containing thes services that this application has. The key forms the suffix of the name of the upstart jobs e.g node-myproject-staging-<-service->. The value is the relative path to the start script of the service
- env (optional): Any custom environment variables that need to be set at run time
An example Admiral application configuration might look like:
{ "name": "My Application"
, "appId": "myApp"
, "buildDir": "/tmp/build"
, "nodeVersion": "0.10.22"
, "services":
{ "admin": "admin/app.js"
, "site": "site/app.js"
, "api": "api/app.js"
, "message-bus": "message-bus.js"
}
, "env":
{ "EXAMPLE_VAR": "example env var"
}
}