Mikey
Mikey

Reputation: 4742

Grails 2.0 cant do run-app &

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?

Upvotes: 5

Views: 1576

Answers (2)

Maxim K.
Maxim K.

Reputation: 651

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"

Upvotes: 2

Joel
Joel

Reputation: 459

Try

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

Thanks to Leighton S. for this.

Upvotes: 10

Related Questions