Added -Dspring.profiles.active=ENV_NAME to command line switch