blob: 6e24aa5b6b0985e4b5c0cd153d97bbc64a1a2b86 (
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
RAILS_ENV=production /usr/bin/bundle exec rake couchrest:migrate
RAILS_ENV=production /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
|