My in-house server works fine but I am unable to customize the pages.
As per official instructions, I should simply adapt the content of config/gogs/template and these changes will overwrite those present on the server.
Changing these pages, however, has no effect, even after a restart of the container.
I am using the default paths and didn't change much in the docker-compose.yml file (in particular config/gogs is mapped container-side to /custom).
Any guess?
My in-house server works fine but I am unable to customize the pages.
As per official instructions, I should simply adapt the content of `config/gogs/template` and these changes will overwrite those present on the server.
Changing these pages, however, has no effect, even after a restart of the container.
I am using the default paths and didn't change much in the `docker-compose.yml` file (in particular `config/gogs` is mapped container-side to `/custom`).
Any guess?
Ensure that the ownership of all files and folders is set to the chosen deployment user and deployment group and all files are set to -rw-rw-r-- permissions. Further the web service requires a restart for updated templates to take effect.
Ensure that the ownership of all files and folders is set to the chosen deployment user and deployment group and all files are set to `-rw-rw-r--` permissions. Further the web service requires a restart for updated templates to take effect.
FYI it is the file config/gogs/templates/base/footer_gin_brand.tmpl that I have slightly changed.
To restart both apache and docker, I run (when inside the docker-compose folder):
systemctl stop apache2.service && docker compose down && docker compose up -d && systemctl start apache2.service
Then I navigate back to my welcome page and hit refresh, but still no changes.
PS: I also re-pulled just in case, but no luck either.
I fixed permissions using
```
chmod -R g+rw $DIR_GINROOT
```
I also updated ownership, just in case:
```
chown -R ginuser:ginservice $DIR_GINROOT
```
Running `ls -lrt` in `config/gogs/templates` now returns
```
drwxrwxr-x 2 ginuser ginservice 4096 Okt 17 14:49 repo
-rw-rw-r-- 1 ginuser ginservice 2234 Okt 17 14:49 home.tmpl
drwxrwxr-x 2 ginuser ginservice 4096 Okt 17 14:49 explore
drwxrwxr-x 2 ginuser ginservice 4096 Okt 17 16:04 base
```
FYI it is the file `config/gogs/templates/base/footer_gin_brand.tmpl` that I have slightly changed.
To restart both apache and docker, I run (when inside the `docker-compose` folder):
```
systemctl stop apache2.service && docker compose down && docker compose up -d && systemctl start apache2.service
```
Then I navigate back to my welcome page and hit refresh, but still no changes.
PS: I also re-pulled just in case, but no luck either.
Sorry to hear this did not solve the issue. If you want to, you can either post here or send your docker-compose file and the gogs app.ini to gin@g-node.org and we can check if we spot any differing settings that could be responsible for this behavior.
Sorry to hear this did not solve the issue. If you want to, you can either post here or send your docker-compose file and the gogs app.ini to gin@g-node.org and we can check if we spot any differing settings that could be responsible for this behavior.
My in-house server works fine but I am unable to customize the pages. As per official instructions, I should simply adapt the content of
config/gogs/template
and these changes will overwrite those present on the server. Changing these pages, however, has no effect, even after a restart of the container. I am using the default paths and didn't change much in thedocker-compose.yml
file (in particularconfig/gogs
is mapped container-side to/custom
). Any guess?Ensure that the ownership of all files and folders is set to the chosen deployment user and deployment group and all files are set to
-rw-rw-r--
permissions. Further the web service requires a restart for updated templates to take effect.I fixed permissions using
I also updated ownership, just in case:
Running
ls -lrt
inconfig/gogs/templates
now returnsFYI it is the file
config/gogs/templates/base/footer_gin_brand.tmpl
that I have slightly changed.To restart both apache and docker, I run (when inside the
docker-compose
folder):Then I navigate back to my welcome page and hit refresh, but still no changes.
PS: I also re-pulled just in case, but no luck either.
Sorry to hear this did not solve the issue. If you want to, you can either post here or send your docker-compose file and the gogs app.ini to gin@g-node.org and we can check if we spot any differing settings that could be responsible for this behavior.