CrossClj

0.8.0-alpha.3 docs

SourceDocs



RECENT

    app-deploy-crate

    Clojars

    Aug 28, 2013


    Readme

    Index of all namespaces


    « Project + dependencies

    A crate to help deploy applications

    pallet.crate.app-deploy.leinDocsSource
    Resolve artifacts for deploying via lein command line.
    
    Each artifact map should provide at least a :project-path entry. The
    :project-path entry may contain a "%s", which will be replaced with the
    project's version string.
    
      {:project-path "target/app-%s-standalone.jar"
       :path  "/opt/myapp/simple-app.jar" ; Path to install to
                                            ; (relative or absolute)
       :unpack false}                       ; flag to unpack the artifact
    pallet.crate.app-deploy.maven-repoDocsSource
    Resolve artifacts from maven repositories, using lein style coordinate
    vectors.  Each artifact map should provide at least a :coord entry.
    
      {:coord [simple-app 0.1.0-SNAPSHOT :classifier standalone]
       :path  "/opt/myapp/simple-app.jar" ; Path to install to
                                            ; (relative or absolute)
       :unpack false}                       ; flag to unpack the artifact
    The README below is fetched from the published project artifact. Some relative links may be broken.

    Repository · Issues · API docs · Annotated source · Release Notes

    A pallet crate to install and control applications.

    Dependency Information

    :dependencies [[com.palletops/app-deploy-crate "0.8.0-alpha.3"]]
    

    Releases

    PalletCrate VersionRepoGroupId
    0.8.0-beta.10 0.8.0-alpha.3 clojars com.palletops Release Notes Source

    Usage

    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.

    Acknowledgments

    This crate is based on work for 313 Ventures, that was released under the EPL license. Many thanks to 313 Ventures.

    License

    Copyright © 2013 Hugo Duncan

    Distributed under the Eclipse Public License.