mirror of
https://gitea.com/gitea/docs.git
synced 2026-06-28 23:24:31 +00:00
Some small improvements
This commit is contained in:
@@ -19,7 +19,7 @@ menu:
|
||||
|
||||
The following changes are made in C:\gitea\custom\conf\app.ini:
|
||||
|
||||
```
|
||||
```ini title="app.ini"
|
||||
RUN_USER = COMPUTERNAME$
|
||||
```
|
||||
|
||||
@@ -31,7 +31,7 @@ COMPUTERNAME is whatever the response is from `echo %COMPUTERNAME%` on the comma
|
||||
|
||||
If you use SQLite3, change the `PATH` to include the full path:
|
||||
|
||||
```
|
||||
```ini title="app.ini"
|
||||
[database]
|
||||
PATH = c:/gitea/data/gitea.db
|
||||
```
|
||||
@@ -41,7 +41,7 @@ PATH = c:/gitea/data/gitea.db
|
||||
To register Gitea as a Windows service, open a command prompt (cmd) as an Administrator,
|
||||
then run the following command:
|
||||
|
||||
```
|
||||
```sh
|
||||
sc.exe create gitea start= auto binPath= "\"C:\gitea\gitea.exe\" web --config \"C:\gitea\custom\conf\app.ini\""
|
||||
```
|
||||
|
||||
@@ -55,7 +55,7 @@ that was configured).
|
||||
|
||||
To add a startup dependency to the Gitea Windows service (eg Mysql, Mariadb), as an Administrator, then run the following command:
|
||||
|
||||
```
|
||||
```sh
|
||||
sc.exe config gitea depend= mariadb
|
||||
```
|
||||
|
||||
@@ -65,6 +65,6 @@ This will ensure that when the Windows machine restarts, the automatic starting
|
||||
|
||||
To unregister Gitea as a service, open a command prompt (cmd) as an Administrator and run:
|
||||
|
||||
```
|
||||
```sh
|
||||
sc.exe delete gitea
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user