b8f93629548a290f52f772d4b99ab0f8528149f0
[motion.git] / scripts / post-merge.sh
1 #!/bin/bash
2
3 echo "post-merge started"
4 cd /var/opt/motion
5 echo "npm install --production"
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"