Source domain isn't used, and using localhost:2368 instead
See original GitHub issueGhost version: 5 NPM Version: 6.14.16 Node Version: v12.22.12 Ghost Static Site Generator version: v1.1.4 OS distro + version: Ubuntu 20.04.4 LTS
Description: When I try to launch gssg, it seems that the flag “–sourceDomain” is not used. Instead, it performs multiple wget commands on http://localhost:2368.
Logs:
root@my-server:~# gssg --sourceDomain http://myghosthosted-onanotherserver.mydomain.org/ --productionDomain http://static.mydomain.org/ --dest myblog-static-folder
Fetching: http://localhost:2368/
ERROR: null
Using Command: wget -q --show-progress --recursive --timestamping --page-requisites --no-parent --no-host-directories --restrict-file-name=unix --directory-prefix myblog-static-folder --content-on-error --trust-server-names http://localhost:2368/
Fetching: http://localhost:2368/sitemap.xsl
ERROR: null
Using Command: wget -q --show-progress --recursive --timestamping --page-requisites --no-parent --no-host-directories --restrict-file-name=unix --directory-prefix myblog-static-folder --content-on-error --trust-server-names http://localhost:2368/sitemap.xsl
Fetching: http://localhost:2368/sitemap.xml
ERROR: null
Using Command: wget -q --show-progress --recursive --timestamping --page-requisites --no-parent --no-host-directories --restrict-file-name=unix --directory-prefix myblog-static-folder --content-on-error --trust-server-names http://localhost:2368/sitemap.xml
myblog-static-folder/sitemap.xml http://localhost:2368/sitemap.xml Error: ENOENT: no such file or directory, open '/root/myblog-static-folder/sitemap.xml'
at Object.openSync (fs.js:462:3)
at Object.readFileSync (fs.js:364:35)
at fetchUrlHelper (/usr/lib/node_modules/ghost-static-site-generator/src/helpers/fetchUrlHelper/fetchUrlHelper.js:47:31)
at Array.forEach (<anonymous>)
at generateStaticSite (/usr/lib/node_modules/ghost-static-site-generator/src/commands/generateStaticSite.js:35:10) {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: '/root/myblog-static-folder/sitemap.xml'
}
Fetching: http://localhost:2368/404
ERROR: null
Using Command: wget -q --show-progress --recursive --timestamping --page-requisites --no-parent --no-host-directories --restrict-file-name=unix --directory-prefix myblog-static-folder --content-on-error --trust-server-names http://localhost:2368/404
Fetching: http://localhost:2368/public/ghost.css
ERROR: null
Using Command: wget -q --show-progress --recursive --timestamping --page-requisites --no-parent --no-host-directories --restrict-file-name=unix --directory-prefix myblog-static-folder --content-on-error --trust-server-names http://localhost:2368/public/ghost.css
Fetching: http://localhost:2368/public/ghost.min.css
ERROR: null
Using Command: wget -q --show-progress --recursive --timestamping --page-requisites --no-parent --no-host-directories --restrict-file-name=unix --directory-prefix myblog-static-folder --content-on-error --trust-server-names http://localhost:2368/public/ghost.min.css
Fetching: http://localhost:2368/public/404-ghost.png
ERROR: null
Using Command: wget -q --show-progress --recursive --timestamping --page-requisites --no-parent --no-host-directories --restrict-file-name=unix --directory-prefix myblog-static-folder --content-on-error --trust-server-names http://localhost:2368/public/404-ghost.png
Fetching: http://localhost:2368/public/404-ghost@2x.png
ERROR: null
Using Command: wget -q --show-progress --recursive --timestamping --page-requisites --no-parent --no-host-directories --restrict-file-name=unix --directory-prefix myblog-static-folder --content-on-error --trust-server-names http://localhost:2368/public/404-ghost@2x.png
Error: ENOENT: no such file or directory, copyfile '/root/myblog-static-folder/404/index.html' -> '/root/myblog-static-folder/404.html'
at Object.copyFileSync (fs.js:1907:3)
at copy404PageHelper (/usr/lib/node_modules/ghost-static-site-generator/src/helpers/copy404PageHelper/copy404PageHelper.js:15:8)
at generateStaticSite (/usr/lib/node_modules/ghost-static-site-generator/src/commands/generateStaticSite.js:40:5) {
errno: -2,
syscall: 'copyfile',
code: 'ENOENT',
path: '/root/myblog-static-folder/404/index.html',
dest: '/root/myblog-static-folder/404.html'
}
Domain: http://localhost:2368
Static site generated at: /root/myblog-static-folder
Site generated in: 229.252ms
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:13
Top Results From Across the Web
Docker Ghost redirect to localhost:2368 · Issue #8966 - GitHub
I can't use ghost with docker on domain name or ip != localhost Everything work, but the home link redirect to localhost:2368 and...
Read more >ghost is mostly working except for default URL it seems
Are you running Ghost on port 80, or trying to, or are you using a web server such as NGINX/Apache to proxy requests...
Read more >When click site name, it goes to http://localhost:2368
I've a ghost blog, and have mapped my godaddy domain name to it, it works all fine, except one tiny thing, when click...
Read more >Facebook App: localhost no longer works as app domain
Since I started using the Facebook Javascript SDK, using localhost as an app domain seemed to work just fine. I was able to...
Read more >How to install Ghost alongside CyberPanel on Ubuntu 20.04 ...
If it fails, don't worry, you can always attempt it again later after the DNS has propagated. If you're using something like Cloudflare...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Now I’m just a humble chicken farmer but I’d suggest that having
localhost
point anywhere other thanlocalhost
is a supremely bad idea and likely to break all sorts of things.Having the same issue here, tried the following command but did not work. $ gssg —domain “https://localhost:2368” --url “https://mysite.com”
Does editing config.development.json file help?