Add local.py for production server and fix permission error for scrapi directory