Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Stefano Marinelli
@stefano@mastodon.bsd.cafe  ·  activity timestamp 3 weeks ago

Client: "I’d like to try some alternative themes for my WordPress site you’re hosting, but I’m afraid of breaking the production site."

Me: "Say no more."

I start:
- create a record for the test site

- bastille clone -l prod testing ip

- bastille console nginx → edit nginx proxy, add the new domain → certbot --nginx -d newdomain.tld

- bastille console testing → mysql → UPDATE wp_options SET option_value = 'https://newdomain.tld' WHERE option_name = 'siteurl';
UPDATE wp_options SET option_value = 'https://newdomain.tld' WHERE option_name = 'home';

- "Done. You can now connect to..."

FreeBSD, jails, ZFS. No limits.

#RunBSD #FreeBSD #jails #BastilleBSD #WordPress

  • Copy link
  • Flag this post
  • Block
bubbleb74
@bubbleb74@snac.doosom.com replied  ·  activity timestamp 3 weeks ago
@stefano@bsd.cafe nice one! I assume that each of your WordPress sites has a dedicated MySQL server. I use one instance that serves all my jails via TCP. Keeps the database backup simple. 😉
  • Copy link
  • Flag this comment
  • Block
Peter Tribble
@ptribble@mastodon.illumos.cafe replied  ·  activity timestamp 3 weeks ago

@stefano This was one of the commonest use cases when we first started using zones back in 2004; it was so trivial to run up a whole populated system in a couple of minutes for people to test things out on, even without zfs (although we didn't have to worry about certificates because https wasn't really a thing back then!).

  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.3.21 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login