carlalexander / debops-wordpress

Your superpowered WordPress server in three commands.
GNU General Public License v3.0
440 stars 65 forks source link

remove a wordpress site on a multisite server #182

Open diroots opened 7 years ago

diroots commented 7 years ago

Hello there.

I followed this guide https://github.com/carlalexander/debops-wordpress/wiki/How-to-configure-multiple-WordPress-sites-on-a-single-server to manage multiple wordpress sites on a single server.

all wordpress sites on the server are defined through a dns wildcard pointing to the server's ip:

# inventory/hosts

 [debops_all_hosts]
 first.example.com
 second.example.com
 third.example.com
 ... 

 [wordpress]
 first.example.com
 second.example.com
 third.example.com
 ...

As many points are configured for a single wordpress site, i'd like to know how to correctly purge the server about any configuration for a site I want to remove / delete from the server (webroot folder, nginx vhosts configs, unix users, fw rules, databases, varnish config,.... )

carlalexander commented 7 years ago

This is a good request. I'll need to think about it a bit and I'll try to write up something!

diroots commented 7 years ago

Hi

As I can discover by parsing the roles, a complete configuration for a site consists in :

am I complete with this listing ?

I have noticed that if I remove some sites from the inventory/hosts :

I believe thid kind of site deletion could be initiated with an argument like 'state=absent' in their inventory/host line, then we could initiate a global 'debops wordpress' run, or even narrow it with 'debops wordpress --limit DOMAINTOREMOVE'

diroots commented 6 years ago

@carlalexander hello. any news on this point? can you give some hints on how to cleanly remove some sites?

carlalexander commented 6 years ago

Yeah sorry @diroots. Been busy and I haven't had a chance to work on the project lately. The key things to remove are: