diff --git a/pm2.json b/devops/pm2.json similarity index 100% rename from pm2.json rename to devops/pm2.json diff --git a/restart.sh b/devops/restart.sh similarity index 100% rename from restart.sh rename to devops/restart.sh diff --git a/src/common/config/env/development.js b/src/common/config/env/development.js index 8499247..157cb70 100644 --- a/src/common/config/env/development.js +++ b/src/common/config/env/development.js @@ -1,6 +1,7 @@ 'use strict'; export default { + resource_on: false, domains:[ // "oa.live.educlouddata.com", // "m.live.educlouddata.com", diff --git a/src/common/config/env/file.js b/src/common/config/env/file.js new file mode 100644 index 0000000..00e9b31 --- /dev/null +++ b/src/common/config/env/file.js @@ -0,0 +1,12 @@ +'use strict'; + +export default { + resource_on: false, + domains:[ + "filea.oa.qbjjyyun.net", + "fileb.oa.qbjjyyun.net", + "filec.oa.qbjjyyun.net", + "fileupload.oa.qbjjyyun.net", + ], + CERT_DIR:"/etc/nginx/cert" +}; \ No newline at end of file diff --git a/src/common/config/env/live.js b/src/common/config/env/live.js index b598592..bb8066f 100644 --- a/src/common/config/env/live.js +++ b/src/common/config/env/live.js @@ -2,14 +2,13 @@ export default { domains:[ - // "oa.live.educlouddata.com", - // "m.live.educlouddata.com", - // "yun.live.educlouddata.com", - // "yunh5.live.educlouddata.com", - // "kms.live.educlouddata.com", - // "ams.live.educlouddata.com", + "oa.live.educlouddata.com", + "m.live.educlouddata.com", + "yun.live.educlouddata.com", + "yunh5.live.educlouddata.com", + "kms.live.educlouddata.com", + "ams.live.educlouddata.com", "data.live.educlouddata.com", - "live.qqsrx.top", ], CERT_DIR:"/usr/local/nginx/conf/cert" }; \ No newline at end of file diff --git a/src/common/config/env/production.js b/src/common/config/env/production.js index 2f0c401..e0df1b1 100644 --- a/src/common/config/env/production.js +++ b/src/common/config/env/production.js @@ -1,5 +1,18 @@ 'use strict'; export default { - resource_on: false + resource_on: false, + domains:[ + // "oa.qbjjyyun.net", + // "m.qbjjyyun.net", + // "yun.qbjjyyun.net", + // "m.ykj.qbjjyyun.net", + // "admin.ykj.qbjjyyun.net", + // "kms.qbjjyyun.net", + // "ams.qbjjyyun.net", + // "data.qbjjyyun.net", + "xxzz.qbjjyyun.net", + "xxzz.h5.qbjjyyun.net", + ], + CERT_DIR:"/etc/nginx/cert" }; \ No newline at end of file diff --git a/www/file.js b/www/file.js new file mode 100644 index 0000000..625afad --- /dev/null +++ b/www/file.js @@ -0,0 +1,21 @@ +var thinkjs = require('thinkjs'); +var path = require('path'); + +var rootPath = path.dirname(__dirname); + +var instance = new thinkjs({ + APP_PATH: rootPath + path.sep + 'app', + RUNTIME_PATH: rootPath + path.sep + 'runtime', + ROOT_PATH: rootPath, + RESOURCE_PATH: __dirname, + env: 'file' +}); + +// Build code from src to app directory. +instance.compile({ + log: true, + presets: [], + plugins: [] +}); + +instance.run();