15 while getopts ":ph:" opt; do
19 echo 'production mode'
36 echo "error checking out master"
43 echo "error pulling master"
49 git checkout `git describe --abbrev=0`
52 echo "error checking out latest tag"
58 git submodule update --init --recursive
61 echo "error updating submodules"
65 # remove all npm packages and reinstall them to get the latest.
69 # rebuild the client and database sides of the app
70 ./scripts/build_app.js