Pārlūkot izejas kodu

增加async import支持

maguohua 8 gadi atpakaļ
vecāks
revīzija
30ff102ccc
5 mainītis faili ar 1 papildinājumiem un 6 dzēšanām
  1. 1 2
      README.md
  2. 0 1
      config/default.js
  3. 0 1
      config/production.js
  4. 0 1
      models/food.js
  5. 0 1
      mongodb/db.js

+ 1 - 2
README.md

@@ -36,12 +36,11 @@ npm run dev  访问: http://localhost:3000
 
 # 部署
 
-```
 部署服务器采用百度应用引擎BAE基础版
 
 部署方式:[百度BAE部署文档](https://cloud.baidu.com/doc/BAE/GUIGettingStarted.html) 
 
-```
+
 
 
 

+ 0 - 1
config/default.js

@@ -1,5 +1,4 @@
 'use strict';
-
 export default {
 	port: 3000,
 	url: 'mongodb://localhost:27017/bae'

+ 0 - 1
config/production.js

@@ -1,5 +1,4 @@
 'use strict';
-
 export default {
 	port: 18080,
 	url: 'mongodb://d762000ca46b4ada9a372db528e48f47:786336dc346e4d3787c7cc96a4ab3312@mongo.duapp.com:8908/sxouaLdjCuZUZSRDwuGn'

+ 0 - 1
models/food.js

@@ -1,5 +1,4 @@
 'use strict';
-
 import mongoose from 'mongoose'
 
 const foodSchema = new mongoose.Schema({

+ 0 - 1
mongodb/db.js

@@ -1,5 +1,4 @@
 'use strict';
-
 import mongoose from 'mongoose';
 import config from 'config-lite';
 mongoose.connect(config.url);