【发布时间】:2020-05-30 04:02:06
【问题描述】:
在我现有的 aws 管道中,我有以下 buildspec.yml:
version: 0.2
phases:
build:
commands:
- cd media/web/front_dev
- echo "Hello" > ../web/txt/hello.txt
artifacts:
files:
- ./media/web/hello.txt
而appspec.yml 有以下内容
version: 0.0
os: linux
files:
- source: /
destination: /webserver/src/public
但是文件hello.txt 没有在部署阶段部署到服务器?一旦我 ssh 进入机器,我就会运行以下命令:
/webserver/src/public/media/web/hello.txt
但是文件没有显示。你知道为什么吗?
我的管道最初只有一个源和一个部署步骤,然后我对其进行了编辑,以便也有一个代码构建步骤。
【问题讨论】:
-
你在运行什么样的网络容器——tomcat、apache?
标签: amazon-web-services pipeline aws-code-deploy aws-codebuild