Gitea: Command line option for the custom directory path

Created on 10 Mar 2017  路  4Comments  路  Source: go-gitea/gitea

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).

kinquestion

Most helpful comment

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

All 4 comments

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

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

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

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 馃槃

Was this page helpful?
0 / 5 - 0 ratings

Related issues

internalfx picture internalfx  路  3Comments

thehowl picture thehowl  路  3Comments

jonasfranz picture jonasfranz  路  3Comments

jorise7 picture jorise7  路  3Comments

ghost picture ghost  路  3Comments