Working folder for windows service #1190

Closed
opened 2025-11-02 03:51:56 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @udoliess on GitHub (Oct 27, 2017).

  • Gitea version (or commit ref): 1.2.2
  • Git version: 2.14.3.windows.1
  • Operating system: Win7
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

Following the installation instructions I tried to setup Gitea as windows service. But at least two directories are created in System32 folder: "data" and "indexers". Setting the enviroment variable GITEA_WORK_DIR did not help.
(How else can I set the working folder for Gitea service? I would prefer a command line parameter but other solutions are welcome.)

Screenshots


Thanks,
Udo

Originally created by @udoliess on GitHub (Oct 27, 2017). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.2.2 - Git version: 2.14.3.windows.1 - Operating system: Win7 - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description Following the installation instructions I tried to setup Gitea as windows service. But at least two directories are created in System32 folder: "data" and "indexers". Setting the enviroment variable GITEA_WORK_DIR did not help. (How else can I set the working folder for Gitea service? I would prefer a command line parameter but other solutions are welcome.) ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** --> --- Thanks, Udo
GiteaMirror added the issue/duplicate label 2025-11-02 03:51:56 -06:00
Author
Owner

@cez81 commented on GitHub (Oct 31, 2017):

I think this https://github.com/go-gitea/gitea/pull/2192 will fix this bug.

Duplicate of https://github.com/go-gitea/gitea/issues/2159

@cez81 commented on GitHub (Oct 31, 2017): I think this https://github.com/go-gitea/gitea/pull/2192 will fix this bug. Duplicate of https://github.com/go-gitea/gitea/issues/2159
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1190