Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grails 2.0 cant do run-app &

Tags:

grails-2.0

Adding &'s to the line where I execute grails seems to be breaking things on any computer I try (so far ubuntu 11.10 and cent 5.something)

Example

grails run-app  #works beautiful
nohup grails run-app #works beautiful
grails run-app & # no working :(

I get results like this:

$ grails run-app &
[3] 16385
$
[3]+  Stopped                 grails run-app

What am I doing wrong?

like image 264
Mikey Avatar asked Mar 19 '12 23:03

Mikey


2 Answers

Try

( nohup grails run-app --non-interactive 2>&1 > /dev/null & )

Thanks to Leighton S. for this.

like image 72
Joel Avatar answered Oct 05 '22 03:10

Joel


Another way to fix execution of grails run-app in the background is to add this option to you user bashrc/profile:

export GRAILS_OPTS="-Djline.terminal=false"
like image 36
Maxim K. Avatar answered Oct 05 '22 01:10

Maxim K.