@@ -112,7 +112,7 @@ module.exports = class TutorialImporter {
112112 //this.tree.destroyTree(data.slug);
113113
114114 let options = {
115- staticHost : config . server . staticHost ,
115+ staticHost : config . urlBase . static ,
116116 resourceWebRoot : Article . getResourceWebRootBySlug ( data . slug )
117117 } ;
118118
@@ -183,7 +183,7 @@ module.exports = class TutorialImporter {
183183 // this.tree.destroyTree(data.slug);
184184
185185 const options = {
186- staticHost : config . server . staticHost ,
186+ staticHost : config . urlBase . static ,
187187 resourceWebRoot : Article . getResourceWebRootBySlug ( data . slug )
188188 } ;
189189
@@ -296,7 +296,7 @@ module.exports = class TutorialImporter {
296296 //this.tree.destroyTree(data.slug);
297297
298298 const options = {
299- staticHost : config . server . staticHost ,
299+ staticHost : config . urlBase . static ,
300300 resourceWebRoot : Task . getResourceWebRootBySlug ( data . slug )
301301 } ;
302302
@@ -376,7 +376,7 @@ module.exports = class TutorialImporter {
376376 } else {
377377 view = new TutorialView ( {
378378 webPath,
379- description : "Fork from https:// " + config . domain . main
379+ description : "Fork from " + config . urlBase . main
380380 } ) ;
381381 log . debug ( "Created new plunk (db empty)" , view ) ;
382382 }
@@ -434,7 +434,7 @@ module.exports = class TutorialImporter {
434434 if ( ! sourceView ) {
435435 sourceView = new TutorialView ( {
436436 webPath : sourceWebPath ,
437- description : "Fork from https:// " + config . domain . main
437+ description : "Fork from " + config . urlBase . main
438438 } ) ;
439439 TutorialViewStorage . instance ( ) . set ( sourceWebPath , sourceView ) ;
440440 }
@@ -463,7 +463,7 @@ module.exports = class TutorialImporter {
463463 if ( ! solutionView ) {
464464 solutionView = new TutorialView ( {
465465 webPath : solutionWebPath ,
466- description : "Fork from https:// " + config . domain . main
466+ description : "Fork from " + config . urlBase . main
467467 } ) ;
468468 TutorialViewStorage . instance ( ) . set ( solutionWebPath , solutionView ) ;
469469 }
@@ -491,7 +491,7 @@ module.exports = class TutorialImporter {
491491function makeSource ( sourceJs , testJs ) {
492492 let source = "<!DOCTYPE HTML>\n<html>\n<head>\n <meta charset=\"utf-8\">\n" ;
493493 if ( testJs ) {
494- source += " <script src=\"https:// " + config . domain . static + "/test/libs.js\"></script>\n" ;
494+ source += " <script src=\"" + config . urlBase . static + "/test/libs.js\"></script>\n" ;
495495 source += " <script src=\"test.js\"></script>\n" ;
496496 }
497497 source += "</head>\n<body>\n\n <script>\n\n" ;
@@ -506,7 +506,7 @@ function makeSource(sourceJs, testJs) {
506506function makeSolution ( solutionJs , testJs ) {
507507 let solution = "<!DOCTYPE html>\n<html>\n<head>\n <meta charset=\"utf-8\">\n" ;
508508 if ( testJs ) {
509- solution += " <script src=\"https:// " + config . domain . static + "/test/libs.js\"></script>\n" ;
509+ solution += " <script src=\"" + config . urlBase . static + "/test/libs.js\"></script>\n" ;
510510 solution += " <script src=\"test.js\"></script>\n" ;
511511 }
512512 solution += "</head>\n<body>\n\n <script>\n\n" ;
0 commit comments