hnshosting-wp/README.md

33 lines
723 B
Markdown
Raw Normal View History

2023-08-16 13:47:49 +10:00
# HNSHosting Wordpress
This is split into two parts.
There is the master server which is the server that will be used to manage the worker servers.
Then there is the worker server which is the server that will be used to host the wordpress site.
This is done to make it easier to manage multiple wordpress sites on multiple servers.
## Master server install
Install prerequisites:
```
chmod +x install.sh
./install.sh
```
This will create the service to run the master server.
## Worker server install
Install prerequisites:
```
chmod +x install.sh
./install.sh
2023-08-16 16:59:57 +10:00
```
Add worker to master server:
```
curl -X POST http://master-server-ip:5000/add-worker?worker=worker-name&ip=worker-server-ip -H "key: api-key"
2023-08-16 13:47:49 +10:00
```