Static Content with a WAR and Jetty on Heroku
I have a REST server that is packaged into a WAR and run with Jetty on
Heroku. I have a new requirement to server up some simple static content.
This is simple enough, I can put the static content into my
"src/main/webapp" and the default servlet will handle it.
However, I do not want to have to rebuild my WAR each time our HTML guy
updates the static content. So I have two questions.
How do I have Jetty serve up my REST service as well as static HTML
content without having to rebuild my war each time the static content
changes.
How do I push new static content to heroku without having to rebuild my
project and restart jetty?
Currently deployment is easy, I only need to worry about code changes so I
just put from git to heroku and it calls mvn package and restarts my
dynos. But with static content only changes I do not want this to happen.
Thanks!
No comments:
Post a Comment