@@ -44,8 +44,8 @@ jobs:
|
|||||||
- name: Build Go binaries
|
- name: Build Go binaries
|
||||||
run: |
|
run: |
|
||||||
cd app
|
cd app
|
||||||
GOOS=linux GOARCH=amd64 go build -o ../wgrplane-linux-amd64 .
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ../wgrplane-linux-amd64 .
|
||||||
GOOS=linux GOARCH=arm64 go build -o ../wgrplane-linux-arm64 .
|
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o ../wgrplane-linux-arm64 .
|
||||||
|
|
||||||
- name: Generate latest.json
|
- name: Generate latest.json
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -355,19 +355,36 @@ cd ../..
|
|||||||
# Server starts on :10087
|
# Server starts on :10087
|
||||||
```
|
```
|
||||||
|
|
||||||
### Option 4: Systemd Service
|
### Option 4: Native CLI / Systemd Service
|
||||||
|
|
||||||
|
The WGRplane binary includes a built-in CLI to manage its own systemd service.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Install service file
|
# Check system dependencies first
|
||||||
sudo cp wgrplane.service /etc/systemd/system/
|
./wgrplane doctor
|
||||||
sudo systemctl daemon-reload
|
|
||||||
sudo systemctl enable wgrplane.service
|
# Install as systemd service (auto-creates unit, enables, and starts)
|
||||||
sudo systemctl start wgrplane.service
|
sudo ./wgrplane install
|
||||||
|
|
||||||
# View logs
|
# View logs
|
||||||
journalctl -u wgrplane.service -f
|
journalctl -u wgrplane -f
|
||||||
|
|
||||||
|
# Other available commands:
|
||||||
|
sudo ./wgrplane stop
|
||||||
|
sudo ./wgrplane restart
|
||||||
|
sudo ./wgrplane uninstall
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Manual Serve & Config
|
||||||
|
|
||||||
|
To run the server manually in the foreground with custom ports:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
./wgrplane serve --port 8080 --host 127.0.0.1
|
||||||
|
```
|
||||||
|
|
||||||
|
On first run, it generates a default configuration file at `~/.config/wgrplane/config.json`.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 📁 Project Structure
|
## 📁 Project Structure
|
||||||
|
|||||||
+1
-1
Submodule app updated: 57ffe45ab7...6ee3191500
Reference in New Issue
Block a user