Initial commit: OpenCode setup and configuration
This commit is contained in:
14
opencode.service
Normal file
14
opencode.service
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=OpenCode Web Service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=wartana
|
||||
WorkingDirectory=/home/wartana
|
||||
EnvironmentFile=/home/wartana/opencode/.env
|
||||
ExecStart=/home/wartana/.opencode/bin/opencode web --port 3040 --hostname 127.0.0.1
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user