Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7161331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:32:57+00:00 2026-05-28T13:32:57+00:00

Grails has a war command to create a Web Application Archive (WAR) file which

  • 0

Grails has a war command to create a Web Application Archive (WAR) file which can be deployed on any Java EE compliant application server.

Heroku apparently uses GIT and an entire repository of one’s code to deploy, from what I’ve gleaned in the tutorials (here and here)

Can you help me understand the integration between these two aspects at a high level. Is running on Heroku just like running in your development environment, where WARs aren’t used?

Thanks, Ray

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T13:32:58+00:00Added an answer on May 28, 2026 at 1:32 pm

    Running on Heroku is running a war in a container.

    The difference is that a Heroku dyno is staged via git hooks. Meaning that it builds whenever you push to the Heroku repository. The reason the plugin uses code directly is that this is much more efficient than pushing a .war pre-packaged to the platform.

    What the plugin does is to facilitate what dependencies are pulled in by the git hook.

    When you push your code, the git hook pulls in the dependencies of Grails and the appserver and packages it all together for you (the work the plugin does is configuration of this process).

    In the end the app runs in an embedded container (or so I recon, I haven’t looked at the plugin more than rudimentary since SpringOne2GX) that is packaged and staged on a special staging dyno and then deployed to run on your computing dynos.

    From your applications point of view, you are running in a container and you can code your app just as you normally would (except that if you make more dynos, their sessions are not replicated, so you cant rely on sessions the same way).

    Edit:

    It should be mentioned, that you can push a pre packaged war to the git repo if you so want, the build system is pretty flexible, also you are not allowed to have a ‘slug size’ (basically the space taken by your project when its ready to run) above 100mb.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hy, I'm developing a Grails app which has to communicate with an existing Java
I've built a Maven Grails project which can be build fine using command mvn
This has been bugging me for awhile now. In a deployed PHP web application
I am developing a grails application which has codenarc plugin. And also I am
I have developed a grails/groovy application for a legacy database which has user maintenance
I have integrated spring security plugin with my grails application, which has hibernate as
I have two grails servers: Server - has read/write access to the database Web
Grails vs Rails. Which has better support? And which one is a better choice
I get an error when I try to deploy a war-file created by Grails.
My Grails application has a large number of enums that look like this: public

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.