Skip to content

Commit

Permalink
[deployment] need to run build step as root, in order to set permissi…
Browse files Browse the repository at this point in the history
…ons correctly to run as ec2-user later
  • Loading branch information
bitwalker committed Jun 7, 2018
1 parent 5f2e845 commit eb50f05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion appspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ hooks:
timeout: 300
AfterInstall:
- location: bin/deployment/build
runas: ec2-user
ApplicationStart:
- location: bin/deployment/migrate
runas: ec2-user
Expand Down
2 changes: 2 additions & 0 deletions bin/deployment/build
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ mix deps.get

mix compile

chown -R ec2-user:ec2-user /opt/app

exit 0

0 comments on commit eb50f05

Please sign in to comment.