Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
856 views
in Technique[技术] by (71.8m points)

amazon web services - How to write yml file uploading flask app from github to iis server on aws ec2 windows instance?

I want to upload a flask app. So I want to create a continuous integration from github actions using web deploy (github marketplace) and upload it to the IIS server which I configured on AWS ec2 windows instance.

name: Pylint

on: [push]

jobs:
  deploy:

runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- name: Configure AWS Credentials
  uses: aws-actions/configure-aws-credentials@v1
  with:
    aws-access-key-id: ${{ secrets.MY_AWS_KEY_ID}}
    aws-secret-access-key: ${{ secrets.MY_AWS_SECRET_ACCESS_KEY}}
    aws-region: us-east-2
- name: GitHub Actions WebDeploy
  uses: cschleiden/webdeploy-action@v1
     webSiteName:'Default Web Site'

  with:
    path: |
          app.py

Please ignore the identation for now .

I know the above yml file is wrong and thats what i wanted to find out what should i modify into it to make it work. Also how should i know IIS site name?

Please help me

question from:https://stackoverflow.com/questions/65829242/how-to-write-yml-file-uploading-flask-app-from-github-to-iis-server-on-aws-ec2-w

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...