- What’s your URL? https://live-blog.thirtynineohsix.com
- What version of Ghost are you using? 3.41.8
- How was Ghost installed and configured? Bitnami package provided by AWS Lightsail
- What Node version, database, OS & browser are you using? Node 10.22.0, db: MySQL
- What errors or information do you see in the console? examples below
- What steps could someone else take to reproduce the issue you’re having? try GitHub - huangyuzhang/gui: A Shell-based Ghost Static Generator
Hi – I’ve been diving into Ghost this week and my hope is to use it to create content that can be exported to static pages to be hosted in AWS S3. Two static site generation tools I’ve found, gssg and gui operate on the same basic principle: wget.
It seems there are several ways of doing this, but the wget based options are the most understandable to me and would meet my need if I could figure out why I’m getting a 301 each time. Is ghost serving HTTP/S? Is that a relatively new feature and these tools pre-date it’s introduction?
Here’s what happens when they run:
gssg
~$ gssg --url https://127.0.0.1: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 --trust-server-names --directory-prefix static --content-on-error 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 --trust-server-names --directory-prefix static --content-on-error http://localhost:2368/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 --trust-server-names --directory-prefix static --content-on-error http://localhost:2368/404
http://localhost:2368 => https://127.0.0.1:2368/: /opt/bitnami/apps/ghost/static/sitemap.xml
Domain: http://localhost:2368
Static site generated at: /opt/bitnami/apps/ghost/static
Site generated in: 75.755ms
gui
~$ ./fizzy.sh
--2021-02-25 08:27:24-- http://localhost:2368/
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:2368... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://localhost:2368/ [following]
--2021-02-25 08:27:24-- https://localhost:2368/
Connecting to localhost (localhost)|127.0.0.1|:2368... connected.
GnuTLS: An unexpected TLS packet was received.
Unable to establish SSL connection.
Converted links in 0 files in 0 seconds.
--2021-02-25 08:27:24-- http://localhost:2368/404.html
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:2368... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://localhost:2368/404.html [following]
--2021-02-25 08:27:24-- https://localhost:2368/404.html
Connecting to localhost (localhost)|127.0.0.1|:2368... connected.
GnuTLS: An unexpected TLS packet was received.
Unable to establish SSL connection.
Converted links in 0 files in 0 seconds.
--2021-02-25 08:27:24-- http://localhost:2368/sitemap.xsl
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:2368... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://localhost:2368/sitemap.xsl [following]
--2021-02-25 08:27:24-- https://localhost:2368/sitemap.xsl
Connecting to localhost (localhost)|127.0.0.1|:2368... connected.
GnuTLS: An unexpected TLS packet was received.
Unable to establish SSL connection.
Converted links in 0 files in 0 seconds.
--2021-02-25 08:27:24-- http://localhost:2368/sitemap.xml
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:2368... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://localhost:2368/sitemap.xml [following]
--2021-02-25 08:27:24-- https://localhost:2368/sitemap.xml
Connecting to localhost (localhost)|127.0.0.1|:2368... connected.
GnuTLS: An unexpected TLS packet was received.
Unable to establish SSL connection.
Converted links in 0 files in 0 seconds.
--2021-02-25 08:27:24-- http://localhost:2368/sitemap-pages.xml
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:2368... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://localhost:2368/sitemap-pages.xml [following]
--2021-02-25 08:27:24-- https://localhost:2368/sitemap-pages.xml
Connecting to localhost (localhost)|127.0.0.1|:2368... connected.
GnuTLS: An unexpected TLS packet was received.
Unable to establish SSL connection.
Converted links in 0 files in 0 seconds.
--2021-02-25 08:27:24-- http://localhost:2368/sitemap-posts.xml
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:2368... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://localhost:2368/sitemap-posts.xml [following]
--2021-02-25 08:27:24-- https://localhost:2368/sitemap-posts.xml
Connecting to localhost (localhost)|127.0.0.1|:2368... connected.
GnuTLS: An unexpected TLS packet was received.
Unable to establish SSL connection.
Converted links in 0 files in 0 seconds.
--2021-02-25 08:27:24-- http://localhost:2368/sitemap-authors.xml
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:2368... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://localhost:2368/sitemap-authors.xml [following]
--2021-02-25 08:27:24-- https://localhost:2368/sitemap-authors.xml
Connecting to localhost (localhost)|127.0.0.1|:2368... connected.
GnuTLS: An unexpected TLS packet was received.
Unable to establish SSL connection.
Converted links in 0 files in 0 seconds.
--2021-02-25 08:27:24-- http://localhost:2368/sitemap-tags.xml
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:2368... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://localhost:2368/sitemap-tags.xml [following]
--2021-02-25 08:27:24-- https://localhost:2368/sitemap-tags.xml
Connecting to localhost (localhost)|127.0.0.1|:2368... connected.
GnuTLS: An unexpected TLS packet was received.
Unable to establish SSL connection.
Converted links in 0 files in 0 seconds.
sed: can't read : No such file or directory
sed: can't read : No such file or directory
sed: can't read : No such file or directory
Thank you for any pointers or guidance here.
I will also say that Netlify seems overkill and the Eleventy approach confuses me (why do I have to have a special template? I like my current, simple template!).
–jg