Deploying to the cloud with your flying sleigh
JavaScript Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
lib
scripts
.gitignore
LICENSE
README.md
package.json

README.md

santa

Deploying to the cloud with your flying sleigh.

Installation

npm -g install santa

Usage

Configuration

santa expects a .santaconf file in your home directory:

{
  "provider": {
    "provider": "<pkgcloud-provider-name>",
    // other provider-specific options
  }
}

provider key is simply passed to pkgcloud.compute.createClient.

You can configure santa easily from command line:

santa config set provider:provider <pkgcloud-provider-name>
# ...

Deployment

santa expects 3 files in your application:

  • package.json
  • scripts/install
  • scripts/configure
  • scripts/start

Scripts

scripts/install

Install all your software.

scripts/configure

Configure all your software.

scripts/start

Start all your software.

Once you set up the structure, simply execute santa deploy in your application directory.

Listing servers

santa servers list

Destroying servers

santa servers destroy <id>

Listing server flavors

santa flavors list

Listing images

santa images list