aws-codepipeline

Codepipeline: Deploy only specific files to s3

不打扰是莪最后的温柔 提交于 2020-06-29 03:21:21
问题 I am having trouble with AWS Codepipeline, rather than deploying the entire GitHub repo to an S3 bucket, I would like Codepipeline to only deploy a single file. Edit: I am using AWS CodeBuild, my deployment yaml file is this version: 0.2 phases: install: runtime-versions: nodejs: 8 commands: - npm i npm@latest -g - pip install --upgrade pip - pip install --upgrade awscli pre_build: commands: - npm install redoc-cli -g build: commands: - redoc-cli bundle ./orchestra/api/api.yml artifacts:

How to write appspec.yml for Ruby on Rails on AWS CodeDeploy

送分小仙女□ 提交于 2020-06-24 10:25:55
问题 I'm trying to migrate my Rails app from Heroku to AWS. I got my AWS CodePipeline working up until the last bit, writing the appspec.yml for CodeDeploy. This requires me to write Ubuntu commands to stop my application, possibly do some migration stuff, and then start the application again. This is not my strong suit so I am struggling a bit with this part. I thought I'd start with executing "rails server" as "AfterInstall" action. But then I openend up a whole box of new problems, i.e. there