Commit 5047b24a authored by Lukas Matt's avatar Lukas Matt

Use different diaspora redis db's for multi-server use

parent a2bca603
......@@ -7,6 +7,7 @@ cd /diaspora \
&& sed -i "s/PORT/$PORT/g" schema.sql \
&& sed -i "s/database: diaspora_production/database: $DATABASE/" config/database.yml \
&& sed -i "s/url: \".*\"/url: \"http:\/\/localhost:$PORT\/\"/" config/diaspora.yml \
&& sed -i "s/#redis:.*/redis: \"redis:\/\/localhost\/${PORT: -1}\"/" config/diaspora.yml \
&& bundle exec rails db:drop db:create db:migrate \
&& psql -U postgres -h localhost -p 5432 -d $DATABASE < schema.sql \
&& ./script/server
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment