when I try to make use of custom environments in grails by setting the environment name like
grails -Dgrails.env=demo run-app
I only get an error message saying
Script 'demo' not found, did you mean: ...
It seems that this problem only exists in a windows environment - on linux, everything works fine...
Sorry, I've forgotten to mention that I use Grails v 2.0.3
found a solution:
windows needs the quotation marks around the parameter:
grails "-Dgrails.env=demo" run-app
this works for both OS: windows and linux!
Update:
It seems that only the windows powershell needs the quotation marks, but linux accepts them, too:
grails "-Dgrails.env=demo" run-app
For windows cmd.exe, you have to use the statement without the quotation marks:
grails -Dgrails.env=demo run-app
horrible.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With