Skip to content

Commit d4d3f22

Browse files
committed
Added deployment script
1 parent 64aa11e commit d4d3f22

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

deploy.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pkill -f node
2+
cd docs && npm install && npm run build && npm run prod &

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"start": "cross-env NODE_ENV=development UV_THREADPOOL_SIZE=100 node ./server",
88
"build": "cross-env NODE_ENV=production UV_THREADPOOL_SIZE=100 webpack --config ./webpack.config.production --colors --profile --progress",
9-
"prod" : "cross-env NODE_ENV=production UV_THREADPOOL_SIZE=100 node ./server",
9+
"prod": "cross-env NODE_ENV=production UV_THREADPOOL_SIZE=100 node ./server",
1010
"deploy": "gh-pages -d build"
1111
},
1212
"dependencies": {

0 commit comments

Comments
 (0)