Javascript CircleCI在YAML中出错时失败
我直接从他们的示例中复制了部署部分:Javascript CircleCI在YAML中出错时失败,javascript,yaml,circleci,Javascript,Yaml,Circleci,我直接从他们的示例中复制了部署部分: 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
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
但我明白了:
想法 最有可能的是,当你从页面复制代码时,你得到了一些古怪的字符。试着用手写。进步。进步。现在它没有失败,但根本不运行部署。