🤔 manage by package.json

This commit is contained in:
brucewar
2016-12-10 23:44:39 +08:00
parent 2090caab15
commit 2e130f47d4
4 changed files with 40 additions and 57 deletions

View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
# run this script before you setup the irext web console
echo "create logging directory"
mkdir -p ./logs
mkdir -p ./logs/production
mkdir -p ./logs/dev
mkdir -p ./logs/user_debug

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bash
filepath=$(cd "$(dirname "$0")"; pwd)
filepath=$(cd "$(dirname "$0")"/../; pwd)
cd $filepath
NODE_ENV=${1} nohup forever irext_console.js &

View File

@@ -1,7 +1,35 @@
{
"name": "application-name",
"name": "irext",
"version": "0.0.1",
"description": "console of irext",
"scripts": {
"server": "bash bin/script_run.sh",
"log": "bash bin/script_init.sh",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/strawmanbobi/irext"
},
"keywords": [
"IRDA"
],
"author": "strawmanbobi",
"license": "MIT",
"dependencies": {
"orm": "latest"
"async": "^2.1.4",
"body-parser": "^1.15.2",
"express": "^4.14.0",
"form-data": "^2.1.2",
"formidable": "^1.0.17",
"log4js": "^1.0.1",
"method-override": "^2.3.7",
"mysql": "^2.12.0",
"orm": "^3.2.0",
"platform": "^1.3.3",
"python-shell": "^0.4.0",
"redis": "^2.6.3",
"request": "^2.79.0",
"ua-parser-js": "^0.7.12"
}
}

View File

@@ -1,54 +0,0 @@
#!/usr/bin/env bash
# run this script before you setup the irext web console
echo "running script of npm install needed by irext..."
echo "npm install express"
npm install express
echo "npm install body-parser"
npm install body-parser
echo "npm install method-override"
npm install method-override
echo "npm install platform"
npm install platform
echo "npm install ua-parser-js"
npm install ua-parser-js
echo "npm install log4js"
npm install log4js
echo "npm install formidable"
npm install formidable
echo "npm install mysql"
npm install mysql
echo "npm install redis"
npm install redis
echo "npm install orm"
npm install orm
echo "npm install python-shell"
npm install python-shell
echo "npm install request"
npm install request
echo "npm install form-data"
npm install form-data
echo "npm install async"
npm install async
echo "npm install done"
echo "create logging directory"
mkdir -p logs
mkdir -p logs/production
mkdir -p logs/dev
mkdir -p logs/user_debug