mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
parent
4e17ab2368
commit
6082a1a932
2 changed files with 5 additions and 5 deletions
|
@ -91,7 +91,7 @@ function printBuildComplete(code) {
|
||||||
function printConfigInstruction() {
|
function printConfigInstruction() {
|
||||||
const data = {
|
const data = {
|
||||||
portal: {
|
portal: {
|
||||||
url: `http://localhost:${port}/portal`
|
url: `http://localhost:${port}/comments`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const stringifedData = JSON.stringify(data, null, 2);
|
const stringifedData = JSON.stringify(data, null, 2);
|
||||||
|
@ -191,8 +191,8 @@ function startDevServer() {
|
||||||
const server = http.createServer((request, response) => {
|
const server = http.createServer((request, response) => {
|
||||||
return handler(request, response, {
|
return handler(request, response, {
|
||||||
rewrites: [
|
rewrites: [
|
||||||
{source: '/portal', destination: 'umd/portal.min.js'},
|
{source: '/comments', destination: 'umd/comments.min.js'},
|
||||||
{source: '/portal.min.js.map', destination: 'umd/portal.min.js.map'}
|
{source: '/comments-ui.min.js.map', destination: 'umd/comments.min.js.map'}
|
||||||
],
|
],
|
||||||
headers: [
|
headers: [
|
||||||
{
|
{
|
||||||
|
|
|
@ -29,7 +29,7 @@ function clearConsole({withHistory = true} = {}) {
|
||||||
function printConfigInstruction() {
|
function printConfigInstruction() {
|
||||||
const data = {
|
const data = {
|
||||||
portal: {
|
portal: {
|
||||||
url: `http://localhost:${port}/portal`
|
url: `http://localhost:${port}/comments`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const stringifedData = JSON.stringify(data, null, 2);
|
const stringifedData = JSON.stringify(data, null, 2);
|
||||||
|
@ -123,7 +123,7 @@ function startDevServer() {
|
||||||
const server = http.createServer((request, response) => {
|
const server = http.createServer((request, response) => {
|
||||||
return handler(request, response, {
|
return handler(request, response, {
|
||||||
rewrites: [
|
rewrites: [
|
||||||
{source: '/portal', destination: 'scripts/load-portal.js'}
|
{source: '/comments', destination: 'scripts/load-portal.js'}
|
||||||
],
|
],
|
||||||
headers: [
|
headers: [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue