summaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'app.js')
-rw-r--r--app.js16
1 files changed, 0 insertions, 16 deletions
diff --git a/app.js b/app.js
index fcb5305c..bfb5a49a 100644
--- a/app.js
+++ b/app.js
@@ -26,22 +26,6 @@ var response = require('./lib/response')
var models = require('./lib/models')
var csp = require('./lib/csp')
-// generate front-end constants by template
-var constpath = path.join(__dirname, './public/js/lib/common/constant.ejs')
-var data = {
- domain: config.domain,
- urlpath: config.urlPath,
- debug: config.debug,
- version: config.version,
- DROPBOX_APP_KEY: config.dropbox.appKey,
- allowedUploadMimeTypes: config.allowedUploadMimeTypes
-}
-
-ejs.renderFile(constpath, data, {}, function (err, str) {
- if (err) throw new Error(err)
- fs.writeFileSync(path.join(__dirname, './public/build/constant.js'), str)
-})
-
// server setup
var app = express()
var server = null