Skip to content

Commit

Permalink
Merge pull request #85 from ReflectionsProjections/dev/alex/env-hotfix
Browse files Browse the repository at this point in the history
crlf fix
  • Loading branch information
aletya authored Jul 3, 2024
2 parents 8a9d498 + 0fd4cbe commit 9f85a01
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
7 changes: 4 additions & 3 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
cd /home/ubuntu/rp-api
yarn build
#!/bin/bash
cd /home/ubuntu/rp-api
yarn build

22 changes: 12 additions & 10 deletions scripts/install_dependencies.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#!/bin/bash
cd /home/ubuntu/rp-api
sudo yarn
#!/bin/bash
cd /home/ubuntu/rp-api
sudo yarn

sudo pm2 describe appname 2>&1 /dev/null
RUNNING=$?


if [ "${RUNNING}" -eq 0 ]; then
sudo pm2 start build/app.js --name RP_API -i 2 --wait-ready --listen-timeout 10000
fi;


sudo pm2 describe appname 2>&1 /dev/null
RUNNING=$?


if [ "${RUNNING}" -eq 0 ]; then
sudo pm2 start build/app.js --name RP_API -i 2 --wait-ready --listen-timeout 10000
fi;
6 changes: 3 additions & 3 deletions scripts/reload_server.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
cd /home/ubuntu/rp-api
sudo pm2 reload RP_API
#!/bin/bash
cd /home/ubuntu/rp-api
sudo pm2 reload RP_API

0 comments on commit 9f85a01

Please sign in to comment.