Giter Site home page Giter Site logo

Comments (8)

skvo1977 avatar skvo1977 commented on June 15, 2024 1

Thank you very much!
It works.
I'll try to make a pull request, but this will be my first time. So sorry if this isn't quite correct. :)

from lizmap-docker-compose.

nboisteault avatar nboisteault commented on June 15, 2024

Hi!
Yes, please try to add - ${LIZMAP_DIR}/var/lizmap-themes-default:/www/lizmap/var/themes/default after :
https://github.com/3liz/lizmap-docker-compose/blob/master/docker-compose.yml#L17

And tell us if it works. If it is ok, could you please make a Pull Request?

from lizmap-docker-compose.

skvo1977 avatar skvo1977 commented on June 15, 2024

I'm sorry. I reopen this topic because I find error in the work of the administration interface after changes.
My changes:
I change docker-compose.yml - add new line ${LIZMAP_DIR}/var/lizmap-themes-default:/www/lizmap/var/themes/default
Copy only modified template main.tpl in ${LIZMAP_DIR}/var/lizmap-themes-default/view
The map view interface work correct.
But, when I go to administration interface I have this error "Error 500. A technical error has occured. Sorry for this trouble."
er2
The login form have this view:
er1

In log-files in /lizmap/www/var/log/errors.log I see
"2022-06-16 14:51:11 10.0.2.2 error 2022-06-16 14:51:11 [18] Unknown module in the selector "jauth~login:out@classic" /www/lib/jelix/core/selector/jSelectorAct.class.php 70"

In log-files in /lizmap/var/log/nginx/lizmap_access.log
10.0.2.2 - - [16/Jun/2022:12:51:11 +0000] "GET /admin.php/admin/config/?auth_url_return=%2Fadmin.php%2Fadmin%2Fconfig%2F HTTP/1.1" 500 178 "http://192.168.2.67:8090/admin.php/auth/login/?auth_url_return=%2Fadmin.php%2Fadmin%2Fconfig%2F%3Fauth_url_return%3D%252Fadmin.php%252Fadmin%252Fconfig%252F" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36"

If I delete line about lizmap-themes-default in docker-compose.yml - all work correct.

from lizmap-docker-compose.

dmarteau avatar dmarteau commented on June 15, 2024

It appears that there is some content needed in the directory required for lizmap to run properly. (Lizmap is not fully docker friendly yet :-/).

My guess is that you will have to modify the docker-compose file to fit your needs: i.e explicitely mount the files/dir required for your needs.

from lizmap-docker-compose.

skvo1977 avatar skvo1977 commented on June 15, 2024

Thank you.
I found what files were needed for the administration interface.
Everything is working correctly now :)

from lizmap-docker-compose.

nboisteault avatar nboisteault commented on June 15, 2024

@skvo1977 Could you change your PR accordingly? Thanks.

from lizmap-docker-compose.

toniodlab avatar toniodlab commented on June 15, 2024

Hello there. I find why this issue is triggered.

Adding the following line will erase some content in lizmap/var/themes/default folder :
- ${LIZMAP_DIR}/var/lizmap-themes-default:/www/lizmap/var/themes/default

I instead added this line - ${LIZMAP_DIR}/var/lizmap-themes-default/view:/www/lizmap/var/themes/default/view and everything is working fine.

I may need to add a line for every modules I want to rewrite, but it's not a problem for me.

If you have a better solution I'll take it :)

from lizmap-docker-compose.

laurentj avatar laurentj commented on June 15, 2024

With the image of Lizmap 3.6 and higher, there is no more static files into lizmap/var, so you can mount /www/lizmap/var/themes/default.

from lizmap-docker-compose.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.