Amazon web services 为什么没有将file.txt部署到我的服务器?
在我现有的aws管道中,我有以下Amazon web services 为什么没有将file.txt部署到我的服务器?,amazon-web-services,pipeline,aws-code-deploy,aws-codebuild,Amazon Web Services,Pipeline,Aws Code Deploy,Aws Codebuild,在我现有的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 fil
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
但是文件没有显示。你知道为什么吗
我的管道最初只有一个源代码和一个部署步骤,然后我对其进行了编辑,以便也有一个代码构建步骤。检查管道。您可能已经添加了构建步骤,但部署只是从版本控制而不是部署中获取代码。要解决此问题,请执行以下步骤:
您正在运行什么样的web容器—tomcat、apache?