Search code examples
upgradegrails-3.3.x

I am trying to upgrade Grails 2.4 to 3.3.6 and fail to change environments: from Development to test. Can someone help me?


 if (Environment.current == Environment.TEST)

I am trying to upgrade Grails 2.4 to 3.3.6 and not able to change environments: from Development to test, Can someone help me?


Solution

  • You can pass the environment when your start the application.

    grails -Dgrails.env=TEST run-app
    

    Check this