Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-27 12:16:10 +01:00
forgejo/docs/content/doc/installation
wxiaoguang fa0b5b14c2
Make "install page" respect environment config (#25648)
Replace #25580

Fix #19453

The problem was: when users set "GITEA__XXX__YYY" , the "install page"
doesn't respect it.

So, to make the result consistent and avoid surprising end users, now
the "install page" also writes the environment variables to the config
file.

And, to make things clear, there are enough messages on the UI to tell
users what will happen.

There are some necessary/related changes to `environment-to-ini.go`:

* The "--clear" flag is removed and it was incorrectly written there.
The "clear" operation should be done if INSTALL_LOCK=true
* The "--prefix" flag is removed because it's never used, never
documented and it only causes inconsistent behavior.


![image](https://github.com/go-gitea/gitea/assets/2114189/12778ee4-3fb5-4664-a73a-41ebbd77cd5b)
2023-07-09 22:43:37 +00:00
..
_index.en-us.md Refactor docs (#23752) 2023-04-28 11:33:41 +08:00
_index.fr-fr.md Refactor docs (#23752) 2023-04-28 11:33:41 +08:00
_index.zh-cn.md Refactor docs (#23752) 2023-04-28 11:33:41 +08:00
_index.zh-tw.md Refactor docs (#23752) 2023-04-28 11:33:41 +08:00
comparison.en-us.md Refactor docs (#23752) 2023-04-28 11:33:41 +08:00
comparison.zh-cn.md Move actions as usage's subdirectory and update comparsion zh-cn version (#24719) 2023-05-15 15:36:20 +08:00
comparison.zh-tw.md Refactor docs (#23752) 2023-04-28 11:33:41 +08:00
database-preparation.en-us.md Refactor docs (#23752) 2023-04-28 11:33:41 +08:00
database-preparation.zh-cn.md Add chinese documentations for installation (#24904) 2023-05-25 04:32:39 +00:00
from-binary.en-us.md Unify doc links to use paths relative to doc folder (#24979) 2023-05-29 13:27:16 +00:00
from-binary.fr-fr.md Use the new download domain replace the old (#25405) 2023-06-21 03:11:17 +00:00
from-binary.zh-cn.md Unify doc links to use paths relative to doc folder (#24979) 2023-05-29 13:27:16 +00:00
from-binary.zh-tw.md Use the new download domain replace the old (#25405) 2023-06-21 03:11:17 +00:00
from-package.en-us.md Unify doc links to use paths relative to doc folder (#24979) 2023-05-29 13:27:16 +00:00
from-package.fr-fr.md Unify doc links to use paths relative to doc folder (#24979) 2023-05-29 13:27:16 +00:00
from-package.zh-cn.md Remove unnecessary content on docs (#24976) 2023-05-30 09:30:56 +08:00
from-package.zh-tw.md Unify doc links to use paths relative to doc folder (#24979) 2023-05-29 13:27:16 +00:00
from-source.en-us.md Update from-source.zh-cn.md & from-source.en-us.md - Cross Compile Using Zig (#25194) 2023-06-13 10:53:51 +08:00
from-source.fr-fr.md Change branch name from master to main in some documents' links (#25126) 2023-06-08 07:35:55 +00:00
from-source.zh-cn.md Update from-source.zh-cn.md & from-source.en-us.md - Cross Compile Using Zig (#25194) 2023-06-13 10:53:51 +08:00
from-source.zh-tw.md Change branch name from master to main in some documents' links (#25126) 2023-06-08 07:35:55 +00:00
on-cloud-provider.en-us.md Add Exoscale to installation on cloud provider docs (#25342) 2023-06-18 15:00:33 +02:00
on-cloud-provider.zh-cn.md Add chinese documentations for installation (#24904) 2023-05-25 04:32:39 +00:00
on-kubernetes.en-us.md Use the new download domain replace the old (#25405) 2023-06-21 03:11:17 +00:00
on-kubernetes.zh-cn.md Use the new download domain replace the old (#25405) 2023-06-21 03:11:17 +00:00
on-kubernetes.zh-tw.md Use the new download domain replace the old (#25405) 2023-06-21 03:11:17 +00:00
run-as-service-in-ubuntu.en-us.md Refactor docs (#23752) 2023-04-28 11:33:41 +08:00
run-as-service-in-ubuntu.zh-cn.md Change branch name from master to main in some documents' links (#25126) 2023-06-08 07:35:55 +00:00
run-as-service-in-ubuntu.zh-tw.md Change branch name from master to main in some documents' links (#25126) 2023-06-08 07:35:55 +00:00
upgrade-from-gitea.en-us.md Refactor docs (#23752) 2023-04-28 11:33:41 +08:00
upgrade-from-gitea.zh-cn.md zh-cn support on doc pages (#24166) 2023-04-18 08:23:35 +08:00
upgrade-from-gogs.en-us.md Use the new download domain replace the old (#25405) 2023-06-21 03:11:17 +00:00
upgrade-from-gogs.fr-fr.md Use the new download domain replace the old (#25405) 2023-06-21 03:11:17 +00:00
upgrade-from-gogs.zh-cn.md Refactor docs (#23752) 2023-04-28 11:33:41 +08:00
upgrade-from-gogs.zh-tw.md Use the new download domain replace the old (#25405) 2023-06-21 03:11:17 +00:00
windows-service.en-us.md Refactor docs (#23752) 2023-04-28 11:33:41 +08:00
windows-service.fr-fr.md Refactor docs (#23752) 2023-04-28 11:33:41 +08:00
windows-service.zh-cn.md Refactor docs (#23752) 2023-04-28 11:33:41 +08:00
windows-service.zh-tw.md Refactor docs (#23752) 2023-04-28 11:33:41 +08:00
with-docker-rootless.en-us.md Make "install page" respect environment config (#25648) 2023-07-09 22:43:37 +00:00
with-docker-rootless.zh-cn.md Add chinese documentations for installation (#24904) 2023-05-25 04:32:39 +00:00
with-docker.en-us.md Make "install page" respect environment config (#25648) 2023-07-09 22:43:37 +00:00
with-docker.fr-fr.md Refactor docs (#23752) 2023-04-28 11:33:41 +08:00
with-docker.zh-cn.md Refactor docs (#23752) 2023-04-28 11:33:41 +08:00
with-docker.zh-tw.md Refactor docs (#23752) 2023-04-28 11:33:41 +08:00