-
远程打包
-
首先要开启mongo服务器
Start the website
npm run start:site
Start the pack server
npm run start:pack
os | command |
---|---|
OS X | xcode-select --install;brew install pkg-config cairo libpng jpeg giflib |
Ubuntu | sudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++ |
cd pack2
npm install
cd yigomobile/public
npm install
备份
mongodump -h 127.0.0.1 -d koa-app -o ~/Desktop/
恢复
mongorestore -h 127.0.0.1 -d koa-app -directoryperdb ~/project/data/db/koa-app