mirror of https://github.com/go-gitea/gitea
Git with a cup of tea, painless self-hosted git service
Mirror for internal git.with.parts use
https://git.with.parts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
960 B
26 lines
960 B
9 years ago
|
@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.
|
||
8 years ago
|
:: Make sure Gitea work running manually with "gitea web" before running
|
||
9 years ago
|
:: this script.
|
||
|
:: And, please, read carefully the installation docs first:
|
||
8 years ago
|
:: https://gogs.io/docs/installation
|
||
9 years ago
|
:: To unistall the service, run "nssm remove gogs" and restart Windows.
|
||
|
|
||
8 years ago
|
:: Set the folder where you extracted Gitea. Omit the last slash.
|
||
9 years ago
|
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."
|
||
8 years ago
|
nssm set gogs DisplayName "Gitea - Git with a cup of tea"
|
||
9 years ago
|
nssm set gogs Start SERVICE_DELAYED_AUTO_START
|
||
|
nssm set gogs AppStdout "%gogspath%\gogs.log"
|
||
|
nssm start gogs
|
||
|
pause
|