Merge pull request #57 from DeBrosOfficial/nightly

Fix: Use config file instead of data directory in systemd service
This commit is contained in:
anonpenguin 2025-10-25 13:07:30 +03:00 committed by GitHub
commit f8c81ff3a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 13 additions and 4 deletions

View File

@ -8,6 +8,14 @@ The format is based on [Keep a Changelog][keepachangelog] and adheres to [Semant
### Added
### Changed
### Deprecated
## [0.51.9] - 2025-10-25
### Added
- One-command `make dev` target to start full development stack (bootstrap + node2 + node3 + gateway in background)
- New `network-cli config init` (no --type) generates complete development stack with all configs and identities
- Full stack initialization with auto-generated peer identities for bootstrap and all nodes

View File

@ -21,7 +21,7 @@ test-e2e:
.PHONY: build clean test run-node run-node2 run-node3 run-example deps tidy fmt vet lint clear-ports
VERSION := 0.51.7-beta
VERSION := 0.51.9-beta
COMMIT ?= $(shell git rev-parse --short HEAD 2>/dev/null || echo unknown)
DATE ?= $(shell date -u +%Y-%m-%dT%H:%M:%SZ)
LDFLAGS := -X 'main.version=$(VERSION)' -X 'main.commit=$(COMMIT)' -X 'main.date=$(DATE)'

View File

@ -389,9 +389,10 @@ create_systemd_services() {
sudo systemctl disable debros-node.service 2>/dev/null || true
sudo rm -f "$node_service_file"
fi
log "Creating debros-node.service..."
cat > /tmp/debros-node.service << 'EOF'
sudo systemctl daemon-reload
log "Creating new systemd service..."
local exec_start="$INSTALL_DIR/bin/node --config $INSTALL_DIR/configs/node.yaml"
cat > /tmp/debros-node.service << EOF
[Unit]
Description=DeBros Network Node (Bootstrap)
After=network-online.target