Add gitignore in server dir.
Remove unnecessary write file in upload.py