0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-18 02:21:47 -05:00

🐛 Fixed Comments administration for self hosters (#15239)

refs https://github.com/TryGhost/Team/issues/1799

Rather than using the `adminAuthAssets` config which is not updated to
be aware of running in a different directory to the cwd, we use the
getContentPath method which handles all of the directory checking.

Without this, we were unable to serve the admin-auth iframe, as the
directory was incorrect for self hosters.
This commit is contained in:
Fabien 'egg' O'Carroll 2022-08-15 15:38:19 -04:00 committed by GitHub
parent b27ea8f504
commit 96cd6df6fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 3 deletions

View file

@ -23,7 +23,7 @@ module.exports = function setupAdminApp() {
));
adminApp.use('/auth-frame', serveStatic(
config.get('paths').adminAuthAssets
path.join(config.getContentPath('public'), 'admin-auth')
));
// Ember CLI's live-reload script

View file

@ -3,7 +3,6 @@
"appRoot": ".",
"corePath": "core/",
"adminAssets": "core/built/admin",
"adminAuthAssets": "content/public/admin-auth",
"helperTemplates": "core/frontend/helpers/tpl/",
"defaultViews": "core/server/views/",
"defaultRouteSettings": "core/server/services/route-settings/",

View file

@ -102,7 +102,6 @@ describe('Config Loader', function () {
'appRoot',
'corePath',
'adminAssets',
'adminAuthAssets',
'helperTemplates',
'defaultViews',
'defaultRouteSettings',