Init app with env param