我直接从他们的示例中复制了部署部分:
machine:
environment:
PATH: ${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin
NODE_ENV: test
TZ: Europe/Paris
node:
version: v0.12.7
dependencies:
cache_directories:
- node_modules
- app/js/lib
override:
- npm prune && npm install
deployment:
production:
branch: master
commands:
- ./deploy_prod.sh
staging:
branch: staging
commands:
- ./deploy_staging.sh
然而我明白了:
想法?