mongodb-setup.sh 386 Bytes
Newer Older
1
#!/bin/sh -e
Carsten Brandt committed
2 3 4
#
# install mongodb

5 6
mongod --version

Carsten Brandt committed
7 8 9 10 11
if (php --version | grep -i HipHop > /dev/null); then
  echo "mongodb does not work on HHVM currently, skipping"
else
  echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
fi
Carsten Brandt committed
12

13 14
# enable text search
mongo --eval 'db.adminCommand( { setParameter: true, textSearchEnabled : true})'
Carsten Brandt committed
15

16
cat /etc/mongodb.conf