/lzxhahaha

Primary LanguageJavaScript

运行

首次运行

在文件中新建config.json,里面加上

{
  "salt": "盐"
}

不要将config.json上传到git仓库

然后执行

$ npm install
$ npm start

访问localhost:3096即可

Windows下脚本

babel编译脚本

可能需要在管理员权限的PowerShell下执行set-executionpolicy remotesigned

run.ps1

babel -d dist/ src/
cp ./src/public ./dist -r -force
cp ./src/views ./dist -r -force

*nix下脚本

首次建立记得执行chmod +x

更新脚本

update

$ forever stop ./dist/bin/www
$ git pull
$ npm install
$ ./run
$ forever start ./dist/bin/www

babel编译脚本

run

babel -d dist/ src/
cp -rf ./src/public ./dist
cp -rf ./src/views ./dist