/
githubmirror
/
gogs
Обзор
Документация
Войти
/
githubmirror
/
gogs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
scripts/windows/install-as-service.bat
25 строк
950 B
ᴊᴏᴇ ᴄʜᴇɴ
chore: fix broken links to gogs.io (#8169)
09 фев 2026, 17:09
Не верифицирован
09 фев 2026, 17:09
069d353
Код
Авторство
О чём код?
@ECHO off :: This script relies on nssm.exe to work. :: Please, download it and make it available on the system path, :: or copy it to the gogs path. :: https://nssm.cc/download :: This script itself should run in the gogs path, too. :: In case of startup failure, please read carefully the log file. :: Make sure Gogs work running manually with "gogs web" before running :: this script. :: And, please, read carefully the installation docs first: :: https://gogs.io/fine-tuning/run-as-service#windows :: To uninstall the service, run "nssm remove gogs" and restart Windows. :: Set the folder where you extracted Gogs. Omit the last slash. SET gogspath=C:\gogs nssm install gogs "%gogspath%\gogs.exe" nssm set gogs AppParameters "web" nssm set gogs Description "A painless self-hosted Git service." nssm set gogs DisplayName "Gogs" nssm set gogs Start SERVICE_DELAYED_AUTO_START nssm set gogs AppStdout "%gogspath%\gogs.log" nssm start gogs pause