claudyus / LXC-Web-Panel

LXC Web Panel improved for lxc 1.0+
http://claudyus.github.io/LXC-Web-Panel/
Other
221 stars 68 forks source link

fix the Flask static and template folder #20

Closed ghost closed 10 years ago

claudyus commented 10 years ago

Did you think that this fix is still required? I don't have any problem about static template forder in master now.

ghost commented 10 years ago

I think the problem lies in that the master installs to /srv/lwp everything, but in app-rework, the lwp binary goes to /usr/bin. According to documentation of Flask, templates and static files are loaded by default from module path, which works for lwp binary in /srv/lwp, but not in /usr/bin.

ghost commented 10 years ago

Oh, I see. The lwp binary is now quite simple. In which case, this is fixed:)