diff --git a/.env.production b/.env.production index abf4611..79a273b 100644 --- a/.env.production +++ b/.env.production @@ -1,6 +1,7 @@ -API_PORT=3001 +API_PORT=3086 API_HOST=127.0.0.1 API_TOKEN_SECRET=sdf(**&*&xx2214 API_TOKEN_EXPIRESIN=1d +GOOGLE_OAUTH_CLIENT="165555585193-glmtnb94s3kkq906hal72ppiuoqpjjc5.apps.googleusercontent.com" DB_MAIN=mongodb://localhost/wallet-production \ No newline at end of file diff --git a/.gitignore b/.gitignore index 391972d..9dacc57 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,6 @@ node_modules build dist .DS_Store +tmp +target +boundle.log diff --git a/boundle.sh b/boundle.sh index a723c87..d9674c3 100755 --- a/boundle.sh +++ b/boundle.sh @@ -1,13 +1,15 @@ #!/bin/bash source /etc/profile -npm install --prefer-offline --loglevel info --unsafe-perm=true --allow-root >> boundle.log +# npm install --prefer-offline --loglevel info --unsafe-perm=true --allow-root >> boundle.log npm run build - -mv node_modules dist/node_modules -echo 'move node_modules to dist/node_modules' >> boundle.log -cd ./dist/ && tar -zcvf ghost.tar.gz ./ +mkdir tmp +mv dist tmp/dist +mv node_modules tmp/node_modules +cp start.json tmp/start.json +echo 'move node_modules to tmp/node_modules' >> boundle.log +cd ./tmp/ && tar -zcvf wallet-svr.tar.gz ./ cd .. -mkdir target && mv ./dist/ghost.tar.gz ./target/ghost.tar.gz +mkdir target && mv ./tmp/wallet-svr.tar.gz ./target/wallet-svr.tar.gz echo 'all done' 2>&1 >> boundle.log \ No newline at end of file