npm install
npm start
Use pm2 to deploy app on production enviroment.
pm2 startOrReload pm2.json
- url: /api/app/post
- methods: post
- params
{
"key": "",
"secret": "",
"package": "",
"version_code": 1
}
- returns
{
"code": 0,
"msg": "",
"data": {
"need_update": true,
"id": 1,
"name": "1",
"is_force_update": 1,
"create_time": 1469861005097,
"url": "http://127.0.0.1:1111/upload/xxxaaassas.apk"
}
}