Slice
Slice

Reputation: 1

How to get Grails create-app working - New app homepage is getting 404

I am getting this after I run grails run-app. It never gets to 100% (I am assuming it should). I can hit the main url or localhost:8080, but get 404 (localhost:8080/myapp) using the appname I created with 'grails create-app myapp' or 'grails create-app myapp --profile=web'. I am 1 day into grails. I did check the controller code, and there is code for '/', 'index'.

grails run-app image

Upvotes: 0

Views: 55

Answers (1)

Jeff Scott Brown
Jeff Scott Brown

Reputation: 27200

It never gets to 100% (I am assuming it should)

That is a reasonable expectation, but not the way it works. It never gets to 100% because technically it isn't done until the process terminates. As long as the app is running, the task is still in progress.

By default your context root will be localhost:8080/, not localhost:8080/myapp.

Upvotes: 0

Related Questions