Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install Morden/Varia WordPress theme on blog.osm.org #1036

Open
grischard opened this issue Mar 4, 2024 · 9 comments
Open

Install Morden/Varia WordPress theme on blog.osm.org #1036

grischard opened this issue Mar 4, 2024 · 9 comments
Labels

Comments

@grischard
Copy link
Collaborator

The theme on supporting.osm.org looks much more modern than the old one on blog.osm.org.

Install these two through chef:

https://wordpress.com/theme/varia (parent theme)
https://wordpress.com/theme/morden (child theme)

Don't activate it yet.

@grischard
Copy link
Collaborator Author

Grant and I were trying to remember what the issue was with chef'ing these. https://github.com/openstreetmap/chef/blob/071a853199b7045f4fe496a12495c52cafad7126/cookbooks/wordpress/resources/theme.rb#L47-L65 seems to only allow installing from git and svn, which in some cases isn't the same as the zipfile. Setting up a private repo is just kicking the snofwlake down the road. The "proper" way of doing this for wordpress themes and plugins is with wp-cli.

@grischard
Copy link
Collaborator Author

Alternatively, we accept that the civicrm and blog wordpresses will have plugins and themes installed with a .zip download, or as snowflakes manually - we back these up every night anyway.

@tomhughes
Copy link
Member

Won't wp-cli just make API calls to wordpress to do the install? Which won't work as our permissions don't allow the web server context to write to the themes or extensions...

@grischard
Copy link
Collaborator Author

Ah, yes, I remember now, that's why we haven't done that - it was a permissions issue. Wp-cli can run as any user, but it needs to run as someone who has write access, and there was a wordpress/www-data conflict.

@grischard
Copy link
Collaborator Author

And the theme wasn't the same as the svn because there was some compilation of css assets going on (and cheffing that would be madness)

@grischard
Copy link
Collaborator Author

Draft PR to allow installing themes by zip: openstreetmap/chef#660

@grischard
Copy link
Collaborator Author

Testing this for supporting.osm.org on openstreetmap/chef#661

@grischard
Copy link
Collaborator Author

Waiting to see if Kevin wants another theme

@grischard
Copy link
Collaborator Author

grischard commented May 11, 2024

It's working well on supporting.openstreetmap.org, but needed a bit of dancing to activate the chef'd theme: it had two directories, morden and morden-wpcom, varia and varia-wpcom. I had to delete the old directories without -wpcom.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants