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:
parent
b27ea8f504
commit
96cd6df6fa
3 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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/",
|
||||
|
|
|
@ -102,7 +102,6 @@ describe('Config Loader', function () {
|
|||
'appRoot',
|
||||
'corePath',
|
||||
'adminAssets',
|
||||
'adminAuthAssets',
|
||||
'helperTemplates',
|
||||
'defaultViews',
|
||||
'defaultRouteSettings',
|
||||
|
|
Loading…
Add table
Reference in a new issue