DEV Community

Discussion on: Serverless Static Wordpress on AWS for $0.01 a day

Collapse
 
phlash profile image
Phil Ashby

I'm currently looking to migrate a few (<10) Wordpress sites off my VM in Azure to static hosting, so I can turn off the VM entirely and save ~$20/mnth. My plan presently is to use Lokl to host each site instance in a container (thus not polluting my local machine with WP stuff), and export static pages via the wordpress.org/plugins/export-wp-pa... plug-in. Testing so far indicates this is workable, and I will be inflicting it on the nice person who owns the sites to run on their Linux PC, leaving me with only cloud storage/CDN costs :)

Future plans involve dumping WP entirely and moving to Hugo but this first step provides the cost savings for me!

Collapse
 
petewilcock profile image
Pete Wilcock • Edited

Good stuff @phlash909 - Lokl is another tool by Leon Stafford - the guy that made WP2Static bundled here. The only sticky bit in the plugin you mentioned is that terribly manual step where you have to 'download html files' and then do something useful with them! This is why I regarded a native S3 integration to be so important for this one. I want to do almost nothing to make it publish!

Collapse
 
phlash profile image
Phil Ashby

True, publishing (in my case to Azure storage) might need me to write some glue scripts and poke the WP API, unless anyone knows of a WP->Static plug-in that supports Azure?

Thread Thread
 
leonstafford profile image
Leon Stafford

Hi Phil,

Great to hear of Lokl being used!

My next plans (after a little Xdebug profiling support) for Lokl, will be adding wizard options to easily setup and deploy sites to Azure/GAE/Cloudflare, etc, using their CLI tools. These tend to have better performance and saves me having to write/maintain custom code to work with their APIs.

Feel free to message me more about the Azure needs - the more I hear about it, the more front of mind it is for me to work on :)

Some comments have been hidden by the post's author - find out more