在文件中新建config.json
,里面加上
{
"salt": "盐"
}
不要将config.json上传到git仓库
然后执行
$ npm install
$ npm start
访问localhost:3096
即可
可能需要在管理员权限的PowerShell下执行
set-executionpolicy remotesigned
run.ps1
babel -d dist/ src/
cp ./src/public ./dist -r -force
cp ./src/views ./dist -r -force
首次建立记得执行
chmod +x
update
$ forever stop ./dist/bin/www
$ git pull
$ npm install
$ ./run
$ forever start ./dist/bin/www
run
babel -d dist/ src/
cp -rf ./src/public ./dist
cp -rf ./src/views ./dist