diff options
| -rw-r--r-- | appspec.yml | 6 | ||||
| -rwxr-xr-x | scripts/build.sh | 9 |
2 files changed, 14 insertions, 1 deletions
diff --git a/appspec.yml b/appspec.yml index 97fbb4d..c38058c 100644 --- a/appspec.yml +++ b/appspec.yml @@ -3,4 +3,8 @@ os: linux files: - source: / destination: /home/ec2-user/philippgeyer.co.uk -
\ No newline at end of file +hooks: + ApplicationStart: + - location: scripts/build.sh + timeout: 300 + runas: ec2-user
\ No newline at end of file diff --git a/scripts/build.sh b/scripts/build.sh new file mode 100755 index 0000000..b6d0580 --- /dev/null +++ b/scripts/build.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +DIR=/home/ec2-user/philippgeyer.co.uk + +pushd ${DIR} + +make + +popd |
