diff --git a/appspec.yml b/appspec.yml index 5fd0524..9806515 100644 --- a/appspec.yml +++ b/appspec.yml @@ -10,3 +10,8 @@ permissions: owner: ubuntu group: ubuntu mode: 755 +hooks: + AfterInstall: + - location: deploy.sh + timeout: 60 + runas: root \ No newline at end of file diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..d32d6b8 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +echo "> FE 배포" + +nohup yarn start & +