Commit e53cfe0c authored by 刘松's avatar 刘松

init readme

parent 25fc5e83
......@@ -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){
});
app.use(routes);
console.dir(config);
app.listen(config.port);
console.log('server started on port ' + config.port);
......
'use strict';
try {
module.exports = require('./config.default.js');
} catch (err) {
module.exports = require('./config.default.js');
}
\ No newline at end of file
module.exports = process.env.NODE_ENV === 'production'
? require('./config_current.js')
: require('./config.default.js');
\ No newline at end of file
{
"name": "fengchao-admin",
"name": "kouling-admin",
"version": "0.0.1",
"description": "console with react es6 ,es7",
"scripts": {
"build": "webpack --config webpack.config.js && node app.js",
"start": "node app.js"
"start": "NODE_ENV=production node app.js"
},
"dependencies": {
"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