Commit e53cfe0c authored by 刘松's avatar 刘松

init readme

parent 25fc5e83
...@@ -6,4 +6,9 @@ ...@@ -6,4 +6,9 @@
数据统计 数据统计
后台设置 后台设置
投放管理 投放管理
媒体管理 媒体管理
\ No newline at end of file
项目启动
build npm run build
prod / npm run start
dev /node app
\ No newline at end of file
...@@ -48,7 +48,6 @@ app.get('/manage/*', function (req, res){ ...@@ -48,7 +48,6 @@ app.get('/manage/*', function (req, res){
}); });
app.use(routes); app.use(routes);
console.dir(config);
app.listen(config.port); app.listen(config.port);
console.log('server started on port ' + config.port); console.log('server started on port ' + config.port);
......
'use strict'; 'use strict';
try { module.exports = process.env.NODE_ENV === 'production'
module.exports = require('./config.default.js'); ? require('./config_current.js')
} catch (err) { : require('./config.default.js');
module.exports = require('./config.default.js'); \ No newline at end of file
}
\ No newline at end of file
{ {
"name": "fengchao-admin", "name": "kouling-admin",
"version": "0.0.1", "version": "0.0.1",
"description": "console with react es6 ,es7", "description": "console with react es6 ,es7",
"scripts": { "scripts": {
"build": "webpack --config webpack.config.js && node app.js", "build": "webpack --config webpack.config.js && node app.js",
"start": "node app.js" "start": "NODE_ENV=production node app.js"
}, },
"dependencies": { "dependencies": {
"antd": "^2.12.5", "antd": "^2.12.5",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment