#3 unable to customize pages

Open
opened 2 years ago by arovai · 3 comments

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?
Michael Sonntag commented 2 years ago
Owner

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.
Antonin Rovai commented 2 years ago
Poster

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.

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.
Michael Sonntag commented 2 years ago
Owner

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.
Sign in to join this conversation.
No Label
No Milestone
No assignee
2 Participants
Loading...
Cancel
Save
There is no content yet.