sd-deploy

    1.0.0 • Public • Published

    npm version Build Status Coverage Status Dependency Status devDependency Status

    sd-deploy

    Deploy to staticdeploy.

    Install

    npm install sd-deploy

    Command line usage

    sd-deploy <options> <app-source-directory>

    Options:

    • --version: show version number
    • -h, --help: show help
    • -i, --id: app id (found on staticdeploy app page)
    • -d, --domain: app domain
    • -s, --stage: stage you wish to deploy to
    • -c, --commit: commit sha to assign to the deployment
    • -t, --apiToken: app api token (found on staticdeploy app page)
    • -u, --apiBaseUrl: api base url. Defaults to https://api.staticdeploy.io

    Usage with travis

    Set the following environment variables for your travis project:

    • APP_ID: app id (found on staticdeploy app page)
    • APP_DOMAIN: app domain
    • APP_API_TOKEN: app api token (found on staticdeploy app page)

    Add the following (or something along the lines) to your .travis.yml:

    after_success:
      # Installs sd-deploy globally
      - npm install -g sd-deploy
      # Deploys the app
      - sd-deploy <path to your app build directory>

    The app stage and commit will be retrieved from travis's default environment variables:

    • stage: TRAVIS_TAG or TRAVIS_BRANCH
    • commit: TRAVIS_COMMIT

    Builds for pull requests are automatically ignored (they would otherwise trigger a deploy to the target of the pull requests).

    Keywords

    none

    Install

    npm i sd-deploy

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • pscanf