<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>heroku &amp;mdash; alan</title>
    <link>https://www.franzoni.eu/alan/tag:heroku</link>
    <description>Alan&#39;s musings</description>
    <language>en</language>
    <pubDate>Tue, 17 Nov 2026 00:52:52 +0000</pubDate>
    <item>
      <title>Deploy any Java webapp via war to Heroku</title>
      <link>https://www.franzoni.eu/alan/deploy-any-java-webapp-via-war-to-heroku</link>
      <description>&lt;![CDATA[a href=&#34;http://www.heroku.com/java&#34;Heroku Java/a support is something I longed for, but they a href=&#34;http://devcenter.heroku.com/articles/java-faq#canideployanapplicationpackagedasawarfileto_heroku&#34;apparently don&#39;t support/a deploying a plain, old war file to Heroku. br /br /I don&#39;t like that; I&#39;ve got my own continuous integration setup, and I want to compile my files on my own box - this allows me to keep my own Maven proxy with my own dependencies - which sometimes are patched versions of public ones -  so that I don&#39;t need to push everything on a public repo. I don&#39;t want to be forced to build everything on Heroku, and I don&#39;t want to compile anything I push - I&#39;d usually push to Heroku stable versions only, or maybe integration versions that pass unit, integration and acceptance tests.br /br /So what? Don&#39;t worry, deployment is possible.br /br /script src=&#34;https://gist.github.com/1301100.js&#34; /scriptbr/br/Setup an heroku-aware git repository and a a href=&#34;http://devcenter.heroku.com/articles/java&#34;Cedar stack app,/a and add the files you see above; your dir structure should look like:br /br /blockquotepom.xmlbr /Procfilebr /src/br /     main/br /             java/br /                    root/br /                           StartWebApp.javabr /             resources/br /                             mywebapp.war/blockquotebr /br /Now a simplebr /br /blockquotegit push heroku master/blockquotebr /br /Should do the trick, and let you see your fully deployed war app.br /br /br /There&#39;re still things you need to be aware of; file persistence may not work as expected, since filesystem is ephemeral, and I still need to figure out things related to database configuration, but those should not come at a great expense.br /br /I&#39;ll post updates in the future as soon as I get them right.br /br /br /br /&#xA;&#xA;#Ollivander #java #heroku #war&#xA;]]&gt;</description>
      <content:encoded><![CDATA[<p><a href="http://www.heroku.com/java" rel="nofollow">Heroku Java</a> support is something I longed for, but they <a href="http://devcenter.heroku.com/articles/java-faq#can_i_deploy_an_application_packaged_as_a_war_file_to_heroku" rel="nofollow">apparently don&#39;t support</a> deploying a plain, old war file to Heroku. <br/><br/>I don&#39;t like that; I&#39;ve got my own continuous integration setup, and I want to compile my files on my own box – this allows me to keep my own Maven proxy with my own dependencies – which sometimes are patched versions of public ones –  so that I don&#39;t need to push everything on a public repo. I don&#39;t want to be forced to build everything on Heroku, and I don&#39;t want to compile anything I push – I&#39;d usually push to Heroku stable versions only, or maybe integration versions that pass unit, integration and acceptance tests.<br/><br/>So what? Don&#39;t worry, deployment is possible.<br/><br/><br/><br/>Setup an heroku-aware git repository and a <a href="http://devcenter.heroku.com/articles/java" rel="nofollow">Cedar stack app,</a> and add the files you see above; your dir structure should look like:<br/><br/><blockquote>pom.xml<br/>Procfile<br/>src/<br/>     main/<br/>             java/<br/>                    root/<br/>                           StartWebApp.java<br/>             resources/<br/>                             mywebapp.war</blockquote><br/><br/>Now a simple<br/><br/><blockquote>git push heroku master</blockquote><br/><br/>Should do the trick, and let you see your fully deployed war app.<br/><br/><br/>There&#39;re still things you need to be aware of; file persistence may not work as expected, since filesystem is ephemeral, and I still need to figure out things related to database configuration, but those should not come at a great expense.<br/><br/>I&#39;ll post updates in the future as soon as I get them right.<br/><br/><br/><br/></p>

<p><a href="/alan/tag:Ollivander" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Ollivander</span></a> <a href="/alan/tag:java" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">java</span></a> <a href="/alan/tag:heroku" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">heroku</span></a> <a href="/alan/tag:war" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">war</span></a></p>
]]></content:encoded>
      <guid>https://www.franzoni.eu/alan/deploy-any-java-webapp-via-war-to-heroku</guid>
      <pubDate>Thu, 20 Oct 2011 19:15:00 +0000</pubDate>
    </item>
  </channel>
</rss>