[deployment] need to run build step as root, in order to set permissions correctly to run as ec2-user later

pull/281/head
Paul Schoenfelder 7 years ago
parent 5f2e84584e
commit eb50f05ce3
  1. 1
      appspec.yml
  2. 2
      bin/deployment/build

@ -9,7 +9,6 @@ hooks:
timeout: 300
AfterInstall:
- location: bin/deployment/build
runas: ec2-user
ApplicationStart:
- location: bin/deployment/migrate
runas: ec2-user

@ -16,4 +16,6 @@ mix deps.get
mix compile
chown -R ec2-user:ec2-user /opt/app
exit 0

Loading…
Cancel
Save