Skip to content

Commit 34d6446

Browse files
author
Xiang Shen
committed
fix params and update build image
1 parent 2be3055 commit 34d6446

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

app/server.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
require 'aws-record'
33

44
before do
5-
unless request.body.read.empty? || request.body.size > 0
5+
if (! request.body.read.empty? and request.body.size > 0)
66
request.body.rewind
77
@params = Sinatra::IndifferentHash.new
88
@params.merge!(JSON.parse(request.body.read))

buildspec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ phases:
44
install:
55
commands:
66
# Upgrade AWS CLI to the latest version
7-
- pip install --upgrade awscli
7+
- pip3 install awscli --upgrade --user
88

99
# Install Ruby dependencies from the Gemfile.
1010
- bundle install --deployment

pipeline-cfn.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ Parameters:
3232
ConstraintDescription: You must enter a GitHub username or organization
3333
CodeBuildImage:
3434
Type: String
35-
Default: aws/codebuild/ruby:2.5.1
36-
Description: Default AWS CodeBuild Ruby 2.5.1 image
35+
Default: aws/codebuild/ruby:2.5.3
36+
Description: Default AWS CodeBuild Ruby 2.5.3 image
3737
MinLength: 3
3838
MaxLength: 100
3939
ConstraintDescription: You must enter a CodeBuild image
@@ -280,4 +280,4 @@ Resources:
280280
StackName: "serverless-sinatra-stack"
281281
ActionMode: CHANGE_SET_EXECUTE
282282
ChangeSetName: pipeline-changeset
283-
RunOrder: 2
283+
RunOrder: 2

0 commit comments

Comments
 (0)