我用Zappa代码创建了一个代码管道,并将其连接到bitbucket。我尝试构建它,但是在代码构建步骤中指出错误失败。
COMMAND_EXECUTION_ERROR Message: Error while executing command: source venv/bin/activate. Reason: exit status 127
这是我的buildspec.yml文件
version: 0.2
phases:
install:
commands:
- echo Setting up virtualenv
- python -m venv venv
- source venv/bin/activate
- echo Installing requirements from file
- pip install -r requirements.txt
build:
commands:
- echo Build started on `date`
- echo Building and running tests
- python tests.py
post_build:
commands:
- aws s3 cp backend-env s3://${S3_BUCKET} --recursive
- echo Build completed on `date`
- echo Starting deployment
- zappa update dev
- echo Deployment completed