lein-ring
lein-ring copied to clipboard
Make skip-file? optional/configurable
Would it be possible to make war/skip-file?
configurable or optional?
The reason I ask is that currently uberwar
skips files/folders beginning with .
, which doesn't play nicely with Amazon Beanstalk (which uses an .ebextensions
directory, see http://aws.typepad.com/aws/2012/10/customize-elastic-beanstalk-using-configuration-files.html for details).
/cc @yalisassoon
This would be really useful. How do folks who use lein beanstalk customize their beanstalk config with this limitation? Is there some other mechanism besides .ebextensions?
@aiba - for a workaround see: https://github.com/snowplow/snowplow/blob/master/2-collectors/clojure-collector/tasks/leiningen/aws.clj
@alexanderdean thanks for the tip. I have a beanstalk project and I like using lein-beanstalk to deploy. How do I incorporate your robert.hooke fix in my current project. Thanks :)
@alexanderdean figured it out. created a task mybeanstalk which calls the other beanstalk after applying the hook. Thanks for doing most of the research :)
@alexanderdean thanks, I did as @timewarrior did and created my own task which calls the lein-beanstalk task after applying the hook.
This would be very helpful.
Actually, it might be sufficient if :filespecs
(see #78) could override skip-file?
.
I've packaged Mark Butler's workaround for this issue as a standalone lein plugin: lein-awsuberwar
What about adding an :uberwar-inclusions
key, analogous to the keys for jars/uberjars? I see in the lein sample file that it even demonstrates this use for Elastic Beanstalk:
:jar-inclusions [#"^\.ebextensions"]
though lein ring uberwar
doesn't seem to look at any of the existing -inclusions
keys.