I am developing a webapplication in Clojure and Vaadin, but I cannot get the application to autoredploy so that I just press refresh on the browser. Any ideas?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Ideally, you’re using a REPL server that will allow you to load new Clojure code into your application at will. In that case, it’s just a matter of changing your workflow to:
If you’re using Maven, you can use the maven-jetty-plugin to automatically reload your webapp when you change its source files. See this post for more info.
Yet another options is to continuously attempt to reload your Clojure code. Something like this, perhaps:
In whatever code you have that starts up your webapp, or in your main servlet init, etc., add something like:
Definitely not something you want to use in production. I’d prefer using a proper remote REPL in every case, but the above will get you by.