Mercurial > hg > Feedworm
view backend/couchdb/CouchApp/feedworm/setup.sh @ 240:1b98925facf6
Bugfix: use the existing _retrieveEntriesForSelectedFeed method to retrieve all articles when deleting a feed
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Tue, 28 Apr 2015 02:23:44 +0200 |
parents | 98eaf0075a44 |
children |
line wrap: on
line source
#!/bin/bash BASE_URL=${1:-http://localhost:5984} DB_URL=${BASE_URL}/feedworm # create the database if it doesn't yet exist curl -f "${DB_URL}" > /dev/null 2>&1 if [ $? -gt 0 ]; then echo -n "creating the database ... " curl -X PUT ${DB_URL} fi couchapp push ${DB_URL}