Nincompoops Producing Methane

    navy-clock-install

    1.1.2 • Public • Published

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

    Keywords

    none

    Install

    npm i navy-clock-install

    DownloadsWeekly Downloads

    5

    Version

    1.1.2

    License

    none

    Last publish

    Collaborators

    • microadam