diff options
| author | Philipp Geyer <philipp@geyer.co.uk> | 2022-01-28 21:26:19 +0000 |
|---|---|---|
| committer | Philipp Geyer <philipp@geyer.co.uk> | 2022-01-28 21:26:19 +0000 |
| commit | 948e7d13c7cb99a615a540fe043a12d5dc242bda (patch) | |
| tree | 9595d388cbc76bea111d4a0aae71048a3b5e06ce | |
| parent | 20c376b022146a2e88f4c15690d28198f810463d (diff) | |
Adding deploy build script
| -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 |
