Fix config templates
Fix postdeploy script
Fix environment configs