Grails

Make it possible to run dev server (jetty) without application context (or with custom one)

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0
  • Fix Version/s: 1.0.3
  • Component/s: Configuration
  • Labels:
    None
  • Environment:
    All
  • Patch Submitted:
    Yes

Description

I could not find a way to run my application under the "/" root context, instead it insists on using the project's app.name property. On the mailing lists ppl have solved this problem by hacking the runAp.groovy script and replaced the $applicationName variable with a "/" string. This forces the issue however, so I modified the script to accept an application context as an argument to the script (and if no argument is provided, default back to original behavior.)

If there is an existing or better way to solve this I'd be happy to hear it as well. Attached is the new RunApp.groovy script.

Issue Links

Activity

Hide
Graeme Rocher added a comment -

I'm not convinced an argument is the right approach, might be better to change for a Config.groovy setting

Show
Graeme Rocher added a comment - I'm not convinced an argument is the right approach, might be better to change for a Config.groovy setting
Hide
Graeme Rocher added a comment -

fixed by GRAILS-2534

Show
Graeme Rocher added a comment - fixed by GRAILS-2534
Hide
Graeme Rocher added a comment -

Bulk closing bunch of resolved issues

Show
Graeme Rocher added a comment - Bulk closing bunch of resolved issues

People

Vote (1)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: