Amazon web services 在appspec.yml中提到可执行文件的位置
我正试图通过github在AWCEC2上部署和运行一个简单的python应用程序(discord bot)。 我已经设置了CodeDeploy和CodePipelineAmazon web services 在appspec.yml中提到可执行文件的位置,amazon-web-services,github,amazon-ec2,discord,discord.py,Amazon Web Services,Github,Amazon Ec2,Discord,Discord.py,我正试图通过github在AWCEC2上部署和运行一个简单的python应用程序(discord bot)。 我已经设置了CodeDeploy和CodePipeline 我需要代码构建吗 我应该在哪里提到appspec.yml中的main.py可执行文件来运行代码 在appspec.yml文件中,哪些挂钩(安装前、安装后、ApplicationStart、ApplicationStop)是重要的 我需要代码构建吗 取决于您的应用程序。对某些人来说,这可能是必需的,而对其他人来说可能不是 我应该在
appspec.yml
只是在实例shell中运行命令。因此,您执行main.py
,就像您通常在实例上手动运行它一样,例如
hooks:
BeforeInstall:
- location: scripts/RynMyPyton.sh
其中scripts/RynMyPyton.sh
将是
#!bin/bash
python main.py
在appspec.yml文件中,哪些挂钩(安装前、安装后、ApplicationStart、ApplicationStop)是重要的
它们在本节中进行了解释