1 2 3 4 5 6 7 8 9 10 | 'use strict'; module.exports = { app: { title: 'Test', description: 'Full-Stack JavaScript with MongoDB, Express, AngularJS, and Node.js', keywords: 'MongoDB, Express, AngularJS, Node.js' }, port: process.env.PORT || 3000, templateEngine: 'swig', |
1 | port: process.env.PORT || 3000, |
1 | NODE_ENV is not defined! Using default development environment |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | $ tree config/ config/ |--- config.js |--- env |�� |--- all.js |�� |--- development.js |�� |--- production.js |�� |--- test.js |--- express.js |--- init.js |--- passport.js |--- strategies |--- facebook.js |--- google.js |--- linkedin.js |--- local.js |--- twitter.js 2 directories, 13 files |
1 2 3 4 5 6 7 8 9 10 11 12 | /** * Module dependencies. */ var _ = require('lodash'); /** * Load app configurations */ module.exports = _.extend( require('./env/all'), require('./env/' + process.env.NODE_ENV) || {} ); |
1 2 3 4 5 6 7 | 'use strict'; module.exports = { db: 'mongodb://localhost/meanjs-dev', app: { title: 'MeanJS - Development Environment' }, |
1 2 3 4 5 | app: { title: 'MeanJS - Development Environment', description: 'Full-Stack JavaScript with MongoDB, Express, AngularJS, and Node.js', keywords: 'MongoDB, Express, AngularJS, Node.js' } |
1 2 3 4 5 6 7 8 | /** * Load app configurations */ module.exports = _.extend( require('./env/all'), require('./env/' + process.env.NODE_ENV) || {} ); console.log(module.exports) |
1 | app: { title: 'MeanJS - Development Environment' } |
1 2 3 4 | app: { title: 'MeanJS - Development Environment', description: 'Full-Stack JavaScript with MongoDB, Express, AngularJS, and Node.js', keywords: 'MongoDB, Express, AngularJS, Node.js' }, |
1 2 3 4 5 6 | <head> <title>MeanJS - Development Environment</title> <!-- Semantic META --> <meta name="keywords" content="MongoDB, Express, AngularJS, Node.js"> <meta name="description" content="Full-Stack JavaScript with MongoDB, Express, AngularJS, and Node.js"> |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |