这是源于我之前的问题的一个更狭窄的问题。
这是我的 buildspec.yml:
version: 0.2
phases:
install:
commands:
# upgrade AWS CLI
- pip install --upgrade awscli
# install Node 12
- curl -sL https://deb.nodesource.com/setup_12.x | bash -
- apt install nodejs
pre_build:
commands:
# install server dependencies
- npm install
build:
commands:
# install client dependencies and build static files
- npm install --prefix client && npm run build --prefix client
post_build:
commands:
# FOR TESTING AND DEBUGGING
- ls -la
- ls client -la
- mkdir client/TEST …Run Code Online (Sandbox Code Playgroud) amazon-web-services node.js amazon-elastic-beanstalk aws-codepipeline aws-codebuild
node.js ×1