init: 初始化项目
Showing
.gitignore
0 → 100644
README.md
0 → 100644
app.js
0 → 100644
app/controller/gps.js
0 → 100644
app/controller/ip.js
0 → 100644
app/router/index.js
0 → 100644
ecosystem.config.js
0 → 100644
package.json
0 → 100644
{ | |||
"name": "server-ppfun-geoip", | |||
"version": "1.0.0", | |||
"description": "根据 IP 获取地区信息", | |||
"private": true, | |||
"scripts": { | |||
"reload-geoip-data": "cd node_modules/geoip-lite && npm run-script updatedb license_key=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", | |||
"hw:mkdir:overseas-dev": "ssh -tt node@101.44.161.199 'sudo mkdir -p /data/work/server-ppfun-overseas-dev/server-geoip && sudo chown node:root /data/work/server-ppfun-overseas-dev/server-geoip && sudo chmod 755 /data/work/server-ppfun-overseas-dev/server-geoip && sudo mkdir -p /data/logs/server-ppfun && sudo chown node:root /data/logs/server-ppfun && sudo chmod 755 /data/logs/server-ppfun'", | |||
"hw:overseas-dev:sync-server": "rsync -avcrzl --delete-after . --exclude node_modules -e 'ssh' node@101.44.161.199:/data/work/server-ppfun-overseas-dev/server-geoip", | |||
"hw:pm2:start:oversea-dev:geoip": "ssh -tt node@101.44.161.199 'cd /data/work/server-ppfun-overseas-dev/server-geoip && nvm use 16.20.2 && pm2 startOrGracefulReload ecosystem.config.js --env overseas-dev --update-env --only overseas-dev-ppfun-geoip'", | |||
"hw:start:oversea-dev:geoip": "npm run hw:mkdir:overseas-dev && npm run hw:overseas-dev:sync-server && npm run hw:pm2:start:oversea-dev:geoip", | |||
"hw:mkdir:overseas-prod": "ssh -tt node@49.0.200.160 'sudo mkdir -p /data/work/server-ppfun-overseas-prod/server-geoip && sudo chown node:root /data/work/server-ppfun-overseas-prod/server-geoip && sudo chmod 755 /data/work/server-ppfun-overseas-prod/server-geoip && sudo mkdir -p /data/logs/server-ppfun && sudo chown node:root /data/logs/server-ppfun && sudo chmod 755 /data/logs/server-ppfun'", | |||
"hw:overseas-prod:sync-server": "rsync -avcrzl --delete-after . --exclude node_modules -e 'ssh' node@49.0.200.160:/data/work/server-ppfun-overseas-prod/server-geoip", | |||
"hw:pm2:start:oversea-prod:geoip": "ssh -tt node@49.0.200.160 'cd /data/work/server-ppfun-overseas-prod/server-geoip && pm2 startOrGracefulReload ecosystem.config.js --env overseas-prod --update-env --only overseas-prod-ppfun-geoip'", | |||
"hw:start:oversea-prod:geoip": "npm run hw:mkdir:overseas-prod && npm run hw:overseas-prod:sync-server && npm run hw:pm2:start:oversea-prod:geoip" | |||
}, | |||
"author": "xiaodong.li", | |||
"dependencies": { | |||
"express": "^4.19.2", | |||
"geoip-lite": "^1.4.10", | |||
"geojson-places": "^1.0.8" | |||
}, | |||
"main": "app.js", | |||
"devDependencies": {}, | |||
"keywords": [ | |||
"server-ppfun" | |||
], | |||
"license": "ISC" | |||
} |
Please
register
or
sign in
to comment