Command line option for the custom directory path #476

Closed
opened 2025-11-02 03:24:52 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @silverwind on GitHub (Mar 10, 2017).

To keep the gitea directory pristine, I currently symlink the custom directory to a directory outside which contains my config and various overrides.

I think it would be useful if one could specify the path to the custom directory, for example through a -c <custom-dir> switch (which would enable me to skip the symlink step).

Originally created by @silverwind on GitHub (Mar 10, 2017). To keep the gitea directory pristine, I currently symlink the `custom` directory to a directory outside which contains my config and various overrides. I think it would be useful if one could specify the path to the custom directory, for example through a `-c <custom-dir>` switch (which would enable me to skip the symlink step).
GiteaMirror added the type/question label 2025-11-02 03:24:52 -06:00
Author
Owner

@tboerger commented on GitHub (Mar 10, 2017):

Just define the GITEA_CUSTOM environment variable to set this path. We won't break this behavior for minor releases.

@tboerger commented on GitHub (Mar 10, 2017): Just define the GITEA_CUSTOM environment variable to set this path. We won't break this behavior for minor releases.
Author
Owner

@silverwind commented on GitHub (Mar 10, 2017):

Thanks, I wasn't aware of that variable. Probably a good idea to add supported environment variables to --help to raise awareness.

@silverwind commented on GitHub (Mar 10, 2017): Thanks, I wasn't aware of that variable. Probably a good idea to add supported environment variables to `--help` to raise awareness.
Author
Owner

@pgaskin commented on GitHub (Mar 10, 2017):

I am currently working on documenting these lesser known features of gitea.

@pgaskin commented on GitHub (Mar 10, 2017): I am currently working on documenting these lesser known features of gitea.
Author
Owner

@gsantner commented on GitHub (Dec 21, 2017):

I would too suggest to add it at least to the --help help, as this is the command most likely used first to find out which argument needs to be set, after trying --config= and seeing it does not work 😄

@gsantner commented on GitHub (Dec 21, 2017): I would too suggest to add it at least to the `--help` help, as this is the command most likely used first to find out which argument needs to be set, after trying `--config=` and seeing it does not work 😄
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#476