Commit a23ab9dc authored by Curtis Adam's avatar Curtis Adam

Changes to demo import path check

parent 1e73ceb9
......@@ -249,17 +249,17 @@ Meteor.methods({
let fs = Npm.require("fs");
let cardGroups = [];
let totalQuantity = 0;
if (Meteor.isProduction) {
if (fs.existsSync(process.env.PWD + '/private/')) {
if (type === 'demo') {
demoPath = process.env.PWD + '/programs/web.browser/app/demo/' + ServerStyle.getDemoFolder() + '/' + ServerStyle.getClientLanguage() + "/";
demoPath = process.env.PWD + '/public/demo/' + ServerStyle.getDemoFolder() + '/' + ServerStyle.getClientLanguage() + "/";
} else {
demoPath = process.env.PWD + '/programs/web.browser/app/demo/makingOf/' + ServerStyle.getClientLanguage() + "/";
demoPath = process.env.PWD + '/public/demo/makingOf/' + ServerStyle.getClientLanguage() + "/";
}
} else {
if (type === 'demo') {
demoPath = process.env.PWD + '/public/demo/' + ServerStyle.getDemoFolder() + '/' + ServerStyle.getClientLanguage() + "/";
demoPath = process.env.PWD + '/programs/web.browser/app/demo/' + ServerStyle.getDemoFolder() + '/' + ServerStyle.getClientLanguage() + "/";
} else {
demoPath = process.env.PWD + '/public/demo/makingOf/' + ServerStyle.getClientLanguage() + "/";
demoPath = process.env.PWD + '/programs/web.browser/app/demo/makingOf/' + ServerStyle.getClientLanguage() + "/";
}
}
if (fs.existsSync(demoPath)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment