Skip to content

Commit

Permalink
fixing bash script to wait for mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Crown committed Jan 30, 2017
1 parent c1da615 commit 9178127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker_entrypoint.sh
@@ -1,3 +1,3 @@
#!/bin/sh
while $(curl http://mysql:3306 > /dev/null 2>&1; [[ $? -ne 0 ]]); do sleep 3; echo "watiting for mysql to boot"; done
while $(curl http://$MYSQL_PORT_3306_TCP_ADDR:3306 > /dev/null 2>&1; [ "$?" -ne "0" ]); do sleep 3; echo "watiting for mysql to boot"; done
/usr/local/bin/python /pipeline/source/manage.py db migrate && /usr/local/bin/python /pipeline/source/manage.py runserver -h 0.0.0.0

0 comments on commit 9178127

Please sign in to comment.