diff --git a/src/common/config/env/yanxue.js b/src/common/config/env/yanxue.js new file mode 100644 index 0000000..6ae1e2b --- /dev/null +++ b/src/common/config/env/yanxue.js @@ -0,0 +1,9 @@ +'use strict'; + +export default { + domains:[ + "admin.yanxueji.net", + "api.yanxueji.net", + ], + CERT_DIR:"/usr/local/nginx/conf/cert" +}; \ No newline at end of file diff --git a/www/yanxue.js b/www/yanxue.js new file mode 100644 index 0000000..08a9d73 --- /dev/null +++ b/www/yanxue.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: 'yanxue' +}); + +// Build code from src to app directory. +instance.compile({ + log: true, + presets: [], + plugins: [] +}); + +instance.run();