4 changed files with 17 additions and 9 deletions
@ -1,4 +1,11 @@ |
|||||
#! /bin/bash |
#! /bin/bash |
||||
|
|
||||
touch /wtfisthis |
curl localhost:5984 2> /dev/null |
||||
|
while [ $? != 0 ]; do |
||||
|
curl localhost:5984 2> /dev/null |
||||
|
sleep 5; |
||||
|
done |
||||
|
|
||||
|
curl -XPUT http://$COUCHDB_USER:$COUCHDB_PASSWORD@localhost:5984/blog || true |
||||
|
curl -XPUT http://$COUCHDB_USER:$COUCHDB_PASSWORD@localhost:5984/blog/_design/blogPosts -d @/blogPosts.json || true |
||||
exec python3 "$@" |
exec python3 "$@" |
||||
|
Loading…
Reference in new issue