https://github.com/farghul/spider
Automate WordPress site deployments.
https://github.com/farghul/spider
go wordpress
Last synced: 2 months ago
JSON representation
Automate WordPress site deployments.
- Host: GitHub
- URL: https://github.com/farghul/spider
- Owner: farghul
- License: unlicense
- Created: 2024-07-02T22:58:58.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-12-23T20:37:27.000Z (6 months ago)
- Last Synced: 2025-12-25T10:48:21.170Z (6 months ago)
- Topics: go, wordpress
- Language: Go
- Homepage:
- Size: 2.94 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Spider
Spider is a WordPress website (blog) deployment tool. It Automates the process of launching and transfering database assets to a new WordPress blog site. Designed with multisite migration in mind and assuming an architecture involving multiple servers (physical, VM, etc.).

## Prerequisites
- Googles' [Go language](https://go.dev) installed to enable building executables from source code.
- An `env.json` file containing enviromental data:
```json
"production": {
"url": "example.com",
"path": "example_com",
"server": "example.dmz"
},
```
## Build
From the root folder containing *main.go*, use the command that matches your environment:
### Windows & Mac:
```bash
go build -o [name] .
```
### Linux:
```bash
GOOS=linux GOARCH=amd64 go build -o [name] .
```
## Run
```bash
[program] [source flag] [destination flag] [website slug]
```
## Flags
Current flages are:
- -s (Staging)
- -p (Production)
- -b (Blog)
- -d (Development)
- -t (Test)
- -e (Engage)
- -f (Forms)
- -w (Working)
- -v (Vanity)
Example deployment:
```bash
spider -s -p antiracism
```
## License
Code is distributed under [The Unlicense](https://github.com/farghul/spider/blob/main/LICENSE.md) and is part of the Public Domain.