add somt config

This commit is contained in:
cebgcontract 2022-10-28 10:32:09 +08:00
parent cf3d451ebd
commit 56aa41ac67
3 changed files with 13 additions and 7 deletions

View File

@ -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

3
.gitignore vendored
View File

@ -3,3 +3,6 @@ node_modules
build
dist
.DS_Store
tmp
target
boundle.log

View File

@ -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