Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't start running a local Grails app

Tags:

grails

I'm in the repository where the cloned Grails app is located in local. I run this command to run and it says:

FAILURE: Build failed with an exception.
* What went wrong:
Task 'bootRun' not found in root project 'vagnkort'.
* Try:
Run gradle tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or 
--debug                                                                                                                      option to get more log output.

When I write ls, my listing is:

README.md       build           grails-app      grailsw.bat     web-app
application.properties  docs            grailsw         src     wrapper
like image 561
Emo Avatar asked Dec 04 '25 23:12

Emo


2 Answers

Try to run "grails clean" to clean up everything and then "grails run-app"

like image 147
user3155328 Avatar answered Dec 07 '25 11:12

user3155328


Indeed, the solution was that I had to run the relevant version of grails. In my case, I had to install the version 2.5.0 (of course this depends on the application build):

gvm install grails 2.5.0

Then switch to that version:

gvm use grails 2.5.0

You might have to switch to that version (that the application is built with) every each time you start the Terminal.

like image 43
Emo Avatar answered Dec 07 '25 10:12

Emo