<NME> start-app.sh
<BEF> #!/bin/bash

set -e

until bash -c "python manage.py db current"; do
  >&2 echo "Postgres is unavailable - sleeping"
  sleep 1
done

>&2 echo "Postgres is up, starting braindump"
# Update Crontab
bash -c "for file in etc/cron/*; do crontab $file; done"
# Run Migrations and Start App
bash -c "python manage.py deploy && gunicorn manage:app -b 0.0.0.0"

<MSG> Remove Cron from startup script

<DFF> @@ -8,7 +8,5 @@ until bash -c "python manage.py db current"; do
 done
 
 >&2 echo "Postgres is up, starting braindump"
-# Update Crontab
-bash -c "for file in etc/cron/*; do crontab $file; done"
 # Run Migrations and Start App
 bash -c "python manage.py deploy && gunicorn manage:app -b 0.0.0.0"
\ No newline at end of file

{'addition_count': 0, 'commit_subject': 'Remove Cron from startup script', 'deletion_count': 2, 'file_extension': '.sh', 'lang': 'sh', 'license': 'mit', 'repo_name': 'levlaz/braindump'}