Repository · Issues · API docs · Annotated source · Release Notes
A pallet crate to install and control applications.
:dependencies [[com.palletops/app-deploy-crate "0.8.0-alpha.2"]]
Pallet | Crate Version | Repo | GroupId | ||
---|---|---|---|---|---|
0.8.0-beta.10 | 0.8.0-alpha.2 | clojars | com.palletops | Release Notes | Source |
The server-spec
function provides an easy way to deploy and control an
application. It takes a map of options specifying the application artifact
sources and destinations, etc. The name of the service for the application, and
the install directory under :app-root
are both taken from the :instance-id
keyword.
The options are as described in the
settings
function.
The deploy
phase deploys using the first defined deploy method by default, but
can be passed an argument to specify the artifact source, as either :from-lein
or :from-maven-repo
.
To control the application, start
, stop
and restart
phases are defined, as
well as instacnce specific start-<instance-id>
, stop-<instance-id>
and
restart-<instance-id>
.
The default supervision is with runit
.
This crate is based on work for 313 Ventures, that was released under the EPL license. Many thanks to 313 Ventures.
Copyright © 2013 Hugo Duncan
Distributed under the Eclipse Public License.