mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Added Portal development --https option support for Safari (#17213)
no issue This --https option allows to test Portal in Safari when the site is hosted on https.
This commit is contained in:
parent
5d8ea79788
commit
3d6848f5fd
1 changed files with 13 additions and 1 deletions
12
.github/scripts/dev.js
vendored
12
.github/scripts/dev.js
vendored
|
@ -106,8 +106,20 @@ if (DASH_DASH_ARGS.includes('portal') || DASH_DASH_ARGS.includes('all')) {
|
|||
prefixColor: 'magenta',
|
||||
env: {}
|
||||
});
|
||||
|
||||
if (DASH_DASH_ARGS.includes('https')) {
|
||||
// Safari needs HTTPS for it to work
|
||||
// To make this work, you'll need a CADDY server running in front
|
||||
// Note the port is different because of this extra layer. Use the following Caddyfile:
|
||||
// https://localhost:4176 {
|
||||
// reverse_proxy http://localhost:4175
|
||||
// }
|
||||
|
||||
COMMAND_GHOST.env['portal__url'] = 'https://localhost:4176/portal.min.js';
|
||||
} else {
|
||||
COMMAND_GHOST.env['portal__url'] = 'http://localhost:4175/portal.min.js';
|
||||
}
|
||||
}
|
||||
|
||||
if (DASH_DASH_ARGS.includes('signup') || DASH_DASH_ARGS.includes('all')) {
|
||||
commands.push({
|
||||
|
|
Loading…
Add table
Reference in a new issue