Don't run tests in the deploy script.
Explicitly push and pull from origin master.
Write documentation for configuration and deploying.