Update deploy.sh and fix moment global visit bug