From 7af73ac8fc281043109f03aaac2772fdb46085aa Mon Sep 17 00:00:00 2001 From: dltjdn Date: Sun, 17 Jul 2022 03:15:17 +0900 Subject: [PATCH] =?UTF-8?q?[FEAT]=20=EB=B0=B0=ED=8F=AC=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 3 ++- scripts/after-deploy.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b2cee4c..6b9ee95 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "main": "index.js", "scripts": { "dev": "nodemon", - "build": "tsc" + "build": "tsc", + "start:dev": "node dist/index.js" }, "author": "", "license": "ISC", diff --git a/scripts/after-deploy.sh b/scripts/after-deploy.sh index c581cd9..54a3d3b 100644 --- a/scripts/after-deploy.sh +++ b/scripts/after-deploy.sh @@ -4,8 +4,8 @@ REPOSITORY=/home/ubuntu/build cd $REPOSITORY sudo /usr/bin/yarn +sudo /usr/bin/pm2 start yarn -- start:dev -sudo /usr/bin/pm2 start dist