-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No rendering of admin login page #3
Comments
This is not reproducible currently on a Linux or OSX machine. This appears to be a Windows specific issue, but currently we don't have a windows dev machine. I'll update here if we can make any progress on this (any help from a Windows dev is appreciated). I assume this is related to the way we look for embedded template resources in library jars. |
(caribou.app.template/path-for-template "login.html") (clojure.java.io/resource "templates\login.html") (clojure.java.io/resource "templates/login.html") so if dont use the system file seperator when loading a template this will solve the problem. |
Thank you very much, this should not take too long to sort out. |
I am working on getting my hands on a Windows machine for testing, but in the meantime if you would like to try out a first attempt at addressing this issue you can check out the win-compat branch of caribou-core and run lein install, after which your existing project will use the new local version. Of course if this is too much trouble, I will continue working on verifying from my end once I procure a windows box. I would like caribou to be fully cross-platform compatible, and my suspicion so far is this issue is a fairly shallow bug. |
I verified that the fix works on Windows, and does not cause a regression with asset upload or serving assets to clients. Pull request issued and recommended for immediate merge to caribou-core. This fix should be present in the next jar we deploy for caribou core, and be pulled in by the next caribou/lein-template |
Operating system: windows 7
lein -version
Leiningen 2.3.2 on Java 1.7.0_40 Java HotSpot(TM) 64-Bit Server V
lein new caribou tundra
cd tundra
lein caribou migrate resources/config/development.clj
lein ring server
curl http://localhost:33333/_admin/login
No template by the name login.html
The text was updated successfully, but these errors were encountered: