#3 unable to customize pages

Mở
%! (template.HTML=2 năm trước cách đây)đang mở bởi arovai · 3 ý kiến

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 đã nhận xét 2 năm trước cách đây
Chủ sở hữu

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 đã nhận xét 2 năm trước cách đây
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 đã nhận xét 2 năm trước cách đây
Chủ sở hữu

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.
Đăng nhập để tham gia bình luận.
Không có nhãn
Không có Milestone
Không có người được phân công
2 tham gia
Đang tải...
Hủy bỏ
Lưu
Ở đây vẫn chưa có nội dung nào.