-
Notifications
You must be signed in to change notification settings - Fork 45
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
Stock guestbook app crashes when running as uberjar #133
Comments
Github doesn't support XML files, but here it is with the TXT extension. |
May have sth to do with #130
I also observed the above error when I manually applied the changes in my current project, but I assumed I did sth wrong and didn't think more about it.
@markokocic?
…-Tobias
ons 21 feb. 2024 kl. 04:21 skrev Philip White ***@***.***>:
Github doesn't support XML files, but here it is with the TXT extension.
pom.xml.txt <https://github.com/kit-clj/kit/files/14353619/pom.xml.txt>
—
Reply to this email directly, view it on GitHub
<#133 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAADU5TG7MASEG2XLP74RVLYUVR4VAVCNFSM6AAAAABDSIXVQWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJVHAYDMMZSG4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
You are right, I pushed a fix to git. @yogthos , we may need a new release. @philipmw In the meantime, you can fix the issue by redefining :router/core in (defmethod ig/init-key :router/core
[_ {:keys [routes env] :as opts}]
(if (= env :dev)
#(ring/router ["" opts routes])
(constantly (ring/router ["" opts routes])))) |
Ah ok makes sense, just ping me when you've got a pr up and I can push a release out then. |
I already committed the fix directly to master 1249b3f |
Awesome, just pushed out a new template with a fix. |
Thanks -- making the suggested fix manually to my existing app solved the problem. Does Kit support merging updates to templates into existing apps? |
No. Once the app is generated from the template, only manual changes are possible. |
I am following the Guestbook tutorial.
I create the app:
I package it:
I start it:
I make a request:
In the JRE, I see this exception:
However, it works fine when started using
(go)
in the REPL.I will try to attach
target/classes/META-INF/maven/kit/guestbook/pom.xml
.The text was updated successfully, but these errors were encountered: