小编mir*_*ron的帖子

部署成功后在 /var/app/current 目录下创建文件

我试图在成功部署/var/app/current目录中创建一个文件。我已经在下面创建了一个配置文件,但没有创建该文件。我认为它总是被覆盖,因为文件首先在. 我不想在我的 VCS 中跟踪文件。.ebextensions/tmp/deployment/application

我的配置文件:

# .ebextensions/create_file.config
files:
  "/var/app/current/src/webapp/dist/testfile.html":
  mode: "000644"
  owner: nodejs
  group: nodejs
  content: |
    <!DOCTYPE html>
    <html lang="en">
    <head>
    </head>
    <body>
    <h1>foo</h1>
    <body>
    </html>
Run Code Online (Sandbox Code Playgroud)

deployment amazon-web-services amazon-elastic-beanstalk

3
推荐指数
1
解决办法
3003
查看次数