Skip to content

Commit

Permalink
Merge branch 'dev' into update/origin
Browse files Browse the repository at this point in the history
  • Loading branch information
glen15 authored Nov 3, 2021
2 parents da162c8 + 9378d1a commit 8cfbb68
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 1 deletion.
3 changes: 3 additions & 0 deletions scripts/initialize.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash
cd /home/ubuntu/Winner-s-Record/server

export ININITIALIZE=ininitialize

npm install
npm install pm2@latest -g
sudo apt-get update
Expand Down
6 changes: 5 additions & 1 deletion scripts/start.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/bin/bash
cd /home/ubuntu/Winner-s-Record/server
authbind --deep pm2 start app.js

export ISIN=$(aws ssm get-parameters --region ap-northeast-2 --names ISIN --query Parameters[0].Value | sed 's/"//g')
export A=a

authbind --deep pm2 start app.js
1 change: 1 addition & 0 deletions scripts/stop.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
cd /home/ubuntu/Winner-s-Record/server
export INSTOP=instop
pm2 stop app.js 2> /dev/null || true
pm2 delete app.js 2> /dev/null || true
2 changes: 2 additions & 0 deletions server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ app.use(cors(corsOptions));
app.use(cookieParser());
app.use(morgan("tiny"));


app.get("/wr", (req, res, next) => {
res.send(`Winner's Record`);

});

app.use("/auth", authRouter);
Expand Down
14 changes: 14 additions & 0 deletions server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"express": "^4.17.1",
"express-async-errors": "^3.1.1",
"express-validator": "^6.13.0",
"helmet": "^4.6.0",
"jsonwebtoken": "^8.5.1",
"morgan": "^1.10.0",
"mysql": "^2.18.1",
Expand Down

0 comments on commit 8cfbb68

Please sign in to comment.