Skip to content

Commit

Permalink
Remove couchapp dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
martiell committed Jan 15, 2021
1 parent efdd9e5 commit a85dd60
Show file tree
Hide file tree
Showing 7 changed files with 1,227 additions and 50 deletions.
7 changes: 0 additions & 7 deletions couch-rpz/.couchapprc

This file was deleted.

6 changes: 3 additions & 3 deletions couch-rpz/push
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dir="$(dirname $0)"
if [ "$dir" != . ]; then
cd "$dir"
fi
remote=$(jq -r .env.default.db < .couchapprc)
remote=http://localhost:5984/rpz
couchdb_user=${housing_data_couchdb_user-${couchdb_user-}}
couchdb_password=${housing_data_couchdb_password-${couchdb_password-}}
if [ -n "$couchdb_user" ] && [ -n "$couchdb_password" ]; then
Expand All @@ -14,9 +14,9 @@ if [ -n "$couchdb_user" ] && [ -n "$couchdb_password" ]; then
remote="${proto}://${couchdb_user}:${couchdb_password}@${rest}"
fi
echo "Updating design document."
couchapp push --docid _design/rpz "$remote"
../node_modules/.bin/couchdb-push "$remote" .
echo "Updating security document."
curl \
curl -sSf \
-X PUT \
-H 'Content-Type: application/json' \
-d '{}' \
Expand Down
7 changes: 0 additions & 7 deletions couch/.couchapprc

This file was deleted.

6 changes: 3 additions & 3 deletions couch/push
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dir="$(dirname $0)"
if [ "$dir" != . ]; then
cd "$dir"
fi
remote=$(jq -r .env.default.db < .couchapprc)
remote=http://localhost:5984/ons
couchdb_user=${housing_data_couchdb_user-${couchdb_user-}}
couchdb_password=${housing_data_couchdb_password-${couchdb_password-}}
if [ -n "$couchdb_user" ] && [ -n "$couchdb_password" ]; then
Expand All @@ -14,9 +14,9 @@ if [ -n "$couchdb_user" ] && [ -n "$couchdb_password" ]; then
remote="${proto}://${couchdb_user}:${couchdb_password}@${rest}"
fi
echo "Updating design document."
couchapp push --docid _design/ons "$remote"
../node_modules/.bin/couchdb-push "$remote" .
echo "Updating security document."
curl \
curl -sSf \
-X PUT \
-H 'Content-Type: application/json' \
-d '{}' \
Expand Down
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ Standards-Version: 3.9.4

Package: housing-data
Architecture: all
Depends: ${misc:Depends}, couchapp
Depends: ${misc:Depends}
Description: Housing data
Loading

0 comments on commit a85dd60

Please sign in to comment.