#!/bin/bash

cd ~/app-root/runtime/repo

rm -rf ChannelWorm

git clone https://github.com/VahidGh/ChannelWorm.git

rm ChannelWorm/channelworm/db.sqlite3

cp -r ChannelWorm/channelworm/* ~/app-root/runtime/repo
cp -r ChannelWorm/channelworm/.openshift/* ~/app-root/runtime/repo/.openshift


#!/bin/bash

cd ~/app-root/runtime/repo

rm -rf ChannelWorm

git clone https://github.com/VahidGh/ChannelWorm.git

rm ChannelWorm/channelworm/db.sqlite3

cp -r ChannelWorm/channelworm/* ~/app-root/runtime/repo
cp -r ChannelWorm/channelworm/.openshift/* ~/app-root/runtime/repo/.openshift

python manage.py makemigrations
python manage.py migrate
Make cron to apply migrations in Django
Make cron to apply migrations in Django
