Skip to content

Commit e80cbc6

Browse files
committed
fix: update web service configuration for opencode web
- Change ExecStart from non-existent opencode-web-service to 'opencode web --hostname --port' which is the actual command - Change WorkingDirectory from %h/.opencode to %h (user home dir) - Remove ExecStartPre upgrade step (upgrade is handled by timer, and GitHub API rate limits can cause service startup failures) - Add OPENCODE_DISABLE_FFF=1 to work around folder picker bug in opencode web UI (see anomalyco/opencode#34675)
1 parent b263482 commit e80cbc6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎wizard.sh‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ Documentation=https://github.com/grikomsn/opencode-systemd
157157
158158
[Service]
159159
Type=simple
160-
WorkingDirectory=%h/.opencode
161-
ExecStartPre=%h/.opencode/bin/opencode upgrade
162-
ExecStart=$OPENCODE_WEB_SERVICE
160+
WorkingDirectory=%h
161+
Environment=OPENCODE_DISABLE_FFF=1
162+
ExecStart=%h/.opencode/bin/opencode web --hostname $WEB_HOST --port $WEB_PORT
163163
Restart=on-failure
164164
RestartSec=5
165165
TimeoutStopSec=30

0 commit comments

Comments
 (0)