Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Check out the <strong><a href="http://grails.org/plugin/standalone">standalone plugin</a></strong> it makes it a lot easier to distribute a demo version of your Grails app.</p> <blockquote> <p>"The <strong>Standalone plugin</strong> builds a runnable JAR file with an embedded war built from your application and an <strong>embedded Tomcat 7 instance</strong>. This allows you to build a single archive that can be <strong>run on any computer with Java 5 or higher</strong> by running java -jar standalone.jar. This can be convenient for demos or even very lightweight installs of low-traffic Grails applications."</p> </blockquote> <p>Full docs for the standalone plugin are <a href="http://grails-plugins.github.com/grails-standalone/docs/manual/index.html">here</a> </p> <p>To prepare the jar file...</p> <pre><code>grails -Dgrails.env=demo build-standalone our_cool_demo.jar </code></pre> <p>To run the Grails app (the port is specified as a parameter)...</p> <p><code>java -jar /path/to/jar_name.jar cool_demo localhost 9000</code></p> <hr> <p><strong>Update:</strong></p> <p>There are actually 2 Grails standalone plugins:</p> <ol> <li>The <a href="http://grails.org/plugin/standalone">'<strong>standalone</strong>'</a> plugin described above which is based on <strong>Tomcat7</strong></li> <li>The <a href="http://grails.org/plugin/jetty-standalone">'<strong>jetty-standalone</strong>'</a> plugin which is based on <strong>Jetty</strong> and works in a similar way</li> </ol> <p>There are also some options based on Hudson and the Winstone project but there isn't a Grails plugin. Here are some links with further information: <em><a href="http://krishnadasari.blogspot.co.uk/2011/01/build-executable-war-using-grails-maven.html">Build executable war using grails, maven and jetty</a>, <a href="http://eclipsesource.com/blogs/2009/10/02/executable-wars-with-jetty/">Executable WARs with Jetty</a> and <a href="http://winstone.sourceforge.net/">Winstone</a></em></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload