From eb50f05ce31aa85185432f7b8b551a12887fa1c1 Mon Sep 17 00:00:00 2001 From: Paul Schoenfelder Date: Thu, 7 Jun 2018 14:05:58 -0400 Subject: [PATCH] [deployment] need to run build step as root, in order to set permissions correctly to run as ec2-user later --- appspec.yml | 1 - bin/deployment/build | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/appspec.yml b/appspec.yml index 0d2960155588..294c4666503c 100644 --- a/appspec.yml +++ b/appspec.yml @@ -9,7 +9,6 @@ hooks: timeout: 300 AfterInstall: - location: bin/deployment/build - runas: ec2-user ApplicationStart: - location: bin/deployment/migrate runas: ec2-user diff --git a/bin/deployment/build b/bin/deployment/build index 047a0b40f833..195b99d45c8d 100755 --- a/bin/deployment/build +++ b/bin/deployment/build @@ -16,4 +16,6 @@ mix deps.get mix compile +chown -R ec2-user:ec2-user /opt/app + exit 0