diff --git a/src/ts/server/routes/index.ts b/src/ts/server/routes/index.ts index 2ed47e1..dcfa6fe 100644 --- a/src/ts/server/routes/index.ts +++ b/src/ts/server/routes/index.ts @@ -118,6 +118,8 @@ export function createIndex(assetsPath: string, adminAssetsPath: string) { script, scriptES, oauthProviders, + port: 8091, + address: config.local.split(':')[0], facebookAppId: config.facebookAppId, isPublic: isPublic ? 'true' : undefined, }); diff --git a/views/index.pug b/views/index.pug index d94efaa..c633248 100644 --- a/views/index.pug +++ b/views/index.pug @@ -76,5 +76,5 @@ html(lang="en") if production script(src=script async) else - script(src="http://localhost:8091/assets/scripts/vendor.js") - script(src="http://localhost:8091" + script.replace('/adm/', '/')) + script(src="http://" + address + ":"+ port + "/assets/scripts/vendor.js") + script(src="http://" + address + ":"+ port + script.replace('/adm/', '/'))