AngualrJs 最新 文件圖片上傳教程6:Server-config

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;
  });
*/

};


發佈了130 篇原創文章 · 獲贊 52 · 訪問量 27萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章