Update setup

Add domain param to script to determine if it is production or development. Added the .env creation which was in the original script under tmp.