Built motion from commit bbcb218.|0.0.68
[motion.git] / scripts / post-merge.sh
1 #!/bin/bash
2
3 echo "post-merge started"
4 cd /var/opt/motion
5 echo "npm install"
6 env CC=/opt/rh/devtoolset-3/root/usr/bin/gcc CXX=/opt/rh/devtoolset-3/root/usr/bin/g++ npm install --production
7 echo "sequelize"
8 sequelize db:migrate --migrations-path server/migrations --config server/config/environment/dbconf.json --env production
9 echo "pm2 restart"
10 pm2 restart motion
11 echo "post-merge finished"