-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconst.js
65 lines (61 loc) · 1.19 KB
/
const.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
const env = require('./env')
// ip地址
let resUrl
// 音频路径
let mp3FilePath
// 数据库地址
let dbHost
// 数据库用户
let dbUser
// 数据库密码
let dbPwd
// 开发环境
if (env === 'dev') {
resUrl = 'http://192.168.1.7:81'
mp3FilePath = 'G:/Nginx/nginx-1.16.1/resource/mp3'
dbHost = 'localhost'
dbUser = 'root'
dbPwd = '159357'
} else if (env === 'prod'){
// 生产环境
// 线上服务器ip地址 使用的默认80端口
resUrl = 'http://123.57.33.170'
// 线上服务器mp3目录
mp3FilePath = '/root/nginx/upload/mp3'
// 不需要加协议名,最后也不能加 / !!!!!!!!!!
dbHost = '123.57.33.170'
dbUser = 'root'
dbPwd = 'Qsc56789!'
}
const category = [
'Biomedicine',
'BusinessandManagement',
'ComputerScience',
'EarthSciences',
'Economics',
'Engineering',
'Education',
'Environment',
'Geography',
'History',
'Laws',
'LifeSciences',
'Literature',
'SocialSciences',
'MaterialsScience',
'Mathematics',
'MedicineAndPublicHealth',
'Philosophy',
'Physics',
'PoliticalScienceAndInternationalRelations',
'Psychology',
'Statistics'
]
module.exports = {
resUrl,
category,
mp3FilePath,
dbHost,
dbUser,
dbPwd
}