modify deploy script to prevent deploying bug

that cause the web die during the deployment
save the copy log for each chapter processed

so we have enough data to sync later