You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
549 B

  1. /*
  2. * @Description: 全局配置信息
  3. * @Author: hai-27
  4. * @Date: 2020-02-07 16:51:56
  5. * @LastEditors: hai-27
  6. * @LastEditTime: 2020-02-28 23:21:30
  7. */
  8. const path = require('path');
  9. module.exports = {
  10. Port: 3000, // 启动端口
  11. staticDir: path.resolve('./public'), // 静态资源路径
  12. uploadDir: path.join(__dirname, path.resolve('public/')), // 上传文件路径
  13. // 数据库连接设置
  14. dbConfig: {
  15. connectionLimit: 10,
  16. host: 'localhost',
  17. port:'8889',
  18. user: 'root',
  19. password: 'root',
  20. database: 'storeDB'
  21. }
  22. }