1.1.2 • Published 7 years ago

navy-clock-install v1.1.2

Weekly downloads
34
License
-
Repository
github
Last release
7 years ago

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"
  }
}
1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

9 years ago

1.0.0

9 years ago

0.0.4

9 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago