Changing gateway to environment variable