#3 unable to customize pages

开启中
arovai2 年之前创建 · 3 条评论

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 评论于 2 年之前
所有者

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 评论于 2 年之前
发布者

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 评论于 2 年之前
所有者

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.
登录 并参与到对话中。
未选择标签
未选择里程碑
未指派成员
2 名参与者
正在加载...
取消
保存
这个人很懒,什么都没留下。