AngualrJs 最新 文件图片上传教程6:Server-config

来源:互联网 发布:木马软件 编辑:程序博客网 时间:2024/05/16 15:42

womeninformationmanagement.server.config.js

'use strict';/** * Module dependencies */var path = require('path'),  config = require(path.resolve('./config/config')),  logger = require(path.resolve('./config/lib/logger')).getLogger_FileNameBase(__filename);/** * Module init function. */module.exports = function (app, sequelize) {/*  //创建自己的表  var WomenInformationManagement = sequelize.model('WomenInformationManagement');  WomenInformationManagement.sync({    force: true,    loging: true  })  .then(function () {    logger.info('Database table WomenInformationManagement synchronized OK!');  }).catch(function (err) {    logger.error('Database table WomenInformationManagement synchronized error: ', err);    throw err;  });*/};


阅读全文
0 0
原创粉丝点击