Created
February 8, 2016 12:50
-
-
Save kamal-github/217eccece65ca1090bf7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Postgres | |
Configure so that the vagrant user doesn't need to provide username and password. | |
apt-get -yqq install postgresql postgresql-contrib-9.3 libpq-dev postgresql-server-dev-9.3 | |
su - postgres | |
createuser --createdb --superuser -Upostgres vagrant | |
psql -c "ALTER USER vagrant WITH PASSWORD 'password';" | |
psql -c "create database discourse_development owner vagrant encoding 'UTF8' TEMPLATE template0;" | |
psql -c "create database discourse_test owner vagrant encoding 'UTF8' TEMPLATE template0;" | |
psql -d discourse_development -c "CREATE EXTENSION hstore;" | |
psql -d discourse_development -c "CREATE EXTENSION pg_trgm;" | |
Edit /etc/postgresql/9.3/main/pg_hba.conf to have this: | |
local all all trust | |
host all all 127.0.0.1/32 trust | |
host all all ::1/128 trust | |
host all all 0.0.0.0/0 trust # wide-open | |
## Redis | |
sudo su - | |
mkdir /tmp/redis_install | |
cd /tmp/redis_install | |
wget http://redis.googlecode.com/files/redis-2.6.7.tar.gz | |
tar xvf redis-2.6.7.tar.gz | |
cd redis-2.6.7 | |
make | |
make install | |
cd utils | |
./install_server.sh | |
# Press enter to accept all the defaults | |
/etc/init.d/redis_6379 start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment