apply production environment and add postinstall script