blob: fa28e5ee5eded0bb52af95e07f84d405bdf2bd3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
cd /srv/leap-webapp
# use admin credentials
cp config/couchdb.yml.admin config/couchdb.yml
chown leap-webapp:leap-webapp config/couchdb.yml
# needs to be run twice
/usr/bin/bundle exec rake couchrest:migrate
/usr/bin/bundle exec rake couchrest:migrate
# use user credentials and remove admin credentials
cp config/couchdb.yml.webapp config/couchdb.yml
chown leap-webapp:leap-webapp config/couchdb.yml
|