Skip to content

Commit eb50f05

Browse files
committed
[deployment] need to run build step as root, in order to set permissions correctly to run as ec2-user later
1 parent 5f2e845 commit eb50f05

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

appspec.yml

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ hooks:
99
timeout: 300
1010
AfterInstall:
1111
- location: bin/deployment/build
12-
runas: ec2-user
1312
ApplicationStart:
1413
- location: bin/deployment/migrate
1514
runas: ec2-user

bin/deployment/build

+2
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@ mix deps.get
1616

1717
mix compile
1818

19+
chown -R ec2-user:ec2-user /opt/app
20+
1921
exit 0

0 commit comments

Comments
 (0)