Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2020-08-14 17:14:13

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Convert to static site

I have a site I’ve not updated content on in years and I’d like to move to a cheaper hosting option such as a aws s3 bucket. Has anyone converted from a textpattern site to a static site successfully?


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#2 2020-08-14 17:23:21

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 8,269
Website

Re: Convert to static site

MattD wrote #325346:

I have a site I’ve not updated content on in years and I’d like to move to a cheaper hosting option such as a aws s3 bucket. Has anyone converted from a textpattern site to a static site successfully?

Hi Matt
A couple of years ago, somebody scraped the whole of the NeMe site and posted it in their domain. I found out, as they were still linking to the js files from our server and appeared in the server logs. The site was converted to html and was working just fine so I would think that it is possible.


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | NeMe @ github | Covid-19; a resource
I do my best editing after I click on the submit button.

Offline

#3 2020-08-14 19:13:20

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: Convert to static site

So far the things I’ve tried failed on thumbnails that are linked to via thumb.php.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#4 2020-08-14 19:13:45

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,363
Website

Re: Convert to static site

I have used this a couple of times to grab an existing site as flat files:

Sitesucker

However, there are caveats that you’ll need to be aware of:

  1. static sites are notoriously bad with any kind of dynamic search functionality. So if your site has this then be prepared to strip it out.
  2. same for any other sections that were previously created dynamically – such as category sections and suchlike. Be prepared to weed those out too.

To be honest, from past experience, it may be easier to just update the site to latest Textpattern release leave it at that. All you need is a AWS Docker container if that’s the platform route you want to go.

Offline

#5 2020-08-16 12:40:31

gaekwad
Admin
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 3,131

Re: Convert to static site

+1 for Sitesucker, if you like GUI stuff. You can also have curl or wget go on a download bombing run and siphon the site if you prefer your command line tools.

I’m curious about Textpattern -> static site solutions too, so I’ll follow this thread with interest.

Offline

#6 2020-08-18 03:42:09

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: Convert to static site

I ended up using wget then just manually fixing the css.php and thumb.php links that were not working. Since my site only had 5 pages this was doable.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

Board footer

Powered by FluxBB