Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I don't think you can set context path with the current <a href="https://github.com/heroku/heroku-buildpack-grails" rel="nofollow">Grails build pack</a>. If you feel like it, you can fork the build pack and hack it to support setting context (see <a href="https://devcenter.heroku.com/articles/buildpacks" rel="nofollow">build pack doc</a> for more info on build packs).</p> <p>Another option is to build your Grails app locally into a WAR file and deploy the WAR file using <a href="https://devcenter.heroku.com/articles/war-deployment" rel="nofollow">WAR deployment</a>. The WAR deployment process will use the <a href="https://github.com/jsimone/webapp-runner" rel="nofollow">webapp-runner</a> utility to run your app with Tomcat and it supports configuring the context path. Here's the help output for webapp-runner 7.0.22.3 (what I happened to have installed, might be slightly out of date):</p> <p><code> Tomcat Runner runs a Java web application that is represented as an exploded war in a Tomcat container Usage: java -jar tomcat-runner.jar [arguments...] path/to/webapp Arguments: --session-timeout The number of minutes of inactivity before a user's session is timed out<br> --port The port that the server will accept http requests on<br> --context_xml The parth to the context xml to use<br> --path context path (default is /)<br> --session_manager session store to use (valid options are 'memcache')<br> --session_manager_operation_timeoutoperation timeout for the memcached session manager. (default is 5000ms)<br> --session_manager_locking_modeSession locking mode for use with memcache session store. (default is all)<br> --session_manager_ignore_patternRequest pattern to not track sessions for. Valid only with memcache session store. (default is '.*\.(png|gif|jpg|css|js)$' </code></p> <p>As explained in the <a href="https://devcenter.heroku.com/articles/war-deployment" rel="nofollow">WAR deploy doc</a>, you can set webapp-runner options for your webapp using the <code>WEBAPP_RUNNER_OPTS</code> config var.</p>
 

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