Repository · Issues · API docs · Annotated source · Release Notes
A pallet crate to install and configure node-js.
:dependencies [[com.palletops/node-js-crate "0.8.0-alpha.1"]]
Pallet | Crate Version | Repo | GroupId | ||
---|---|---|---|---|---|
0.8.0-RC.4 | 0.8.0-alpha.1 | clojars | com.palletops | Release Notes | Source |
The node-js crate provides a server-spec
function that returns a
server-spec. This server spec will install and run the node-js server.
You pass a map of options to configure node-js.
The server-spec
provides an easy way of using the crate functions, and you can
use the following crate functions directly if you need to.
The settings
function provides a plan function that should be called in the
:settings
phase. The function puts the configuration options into the pallet
session, where they can be found by the other crate functions, or by other
crates wanting to interact with node-js.
The install
function is responsible for actually installing node-js.
The method used to install node-js can be controlled via the
:install-strategy
settings key.
For example, to run the live test on VMFest, using Ubuntu 13.04:
lein with-profile +vmfest pallet up --selectors ubuntu-13
lein with-profile +vmfest pallet down --selectors ubuntu-1#
Copyright (C) 2012, 2013 Hugo Duncan
Distributed under the Eclipse Public License.