Skip to content

Commit

Permalink
chore: add before install hook
Browse files Browse the repository at this point in the history
  • Loading branch information
siepra committed Mar 22, 2024
1 parent 87a1e35 commit d33ba19
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
4 changes: 4 additions & 0 deletions appspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ files:
- source: /
destination: /home/ubuntu/qss
hooks:
BeforeInstall:
- location: aws/scripts/before-install.sh
timeout: 300
runas: root
AfterInstall:
- location: aws/scripts/after-install.sh
timeout: 300
Expand Down
7 changes: 0 additions & 7 deletions aws/scripts/after-install.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
cd ~
curl -sL https://deb.nodesource.com/setup_18.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt install nodejs -y

npm install pm2@latest -g

cd /home/ubuntu/qss
npm i
9 changes: 9 additions & 0 deletions aws/scripts/before-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
cd ~
curl -sL https://deb.nodesource.com/setup_18.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt install nodejs -y

npm install pm2@latest -g

pm2 stop QSS
rm -rf /home/ubuntu/qss

0 comments on commit d33ba19

Please sign in to comment.