1.0.0 • Published 10 years ago
sd-deploy v1.0.0
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 tohttps://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 domainAPP_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_TAGorTRAVIS_BRANCHcommit:TRAVIS_COMMIT
Builds for pull requests are automatically ignored (they would otherwise trigger a deploy to the target of the pull requests).
1.0.0
10 years ago