Skip to content

Move the app context path example url#968

Merged
jamesfredley merged 1 commit intoapache:7.0.xfrom
gandharvas:move-url-to-right-place
Apr 7, 2025
Merged

Move the app context path example url#968
jamesfredley merged 1 commit intoapache:7.0.xfrom
gandharvas:move-url-to-right-place

Conversation

@gandharvas
Copy link
Copy Markdown
Contributor

The Getting Started sections Optional: Set a Context Path explains how a configuration property be set in the application.yaml file but the corresponding link explaining how that configuration is accessible is missing or misplaced.

Link : https://docs.grails.org/7.0.0-M3/guide/single.html#introduction

If you want to set a context path for your application, create a configuration property in the "grails-app/conf/application.yml" file:

server:
    servlet:
        context-path: /myapp
With this configuration, the application will be available at:

Alternatively, you can also set the context path via the command line:

grails> run-app -Dgrails.server.servlet.context-path=/helloworld

http://localhost:8080/myapp/

This must have to be:
With this configuration, the application will be available at: http://localhost:8080/myapp

Issue: #967

@jamesfredley jamesfredley added this to the grails:7.0.0-M4 milestone Apr 7, 2025
@jamesfredley jamesfredley self-requested a review April 7, 2025 17:45
@jamesfredley jamesfredley linked an issue Apr 7, 2025 that may be closed by this pull request
@jamesfredley
Copy link
Copy Markdown
Contributor

@gandharvas Thank you.

@jamesfredley jamesfredley merged commit 210d849 into apache:7.0.x Apr 7, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set a Context Path in Getting Started Section has a missing link

2 participants