This repository has been archived by the owner. It is now read-only.
place
Branch: master
Clone or download
1
Latest commit 453892c Apr 4, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
reddit_place End the game. Apr 3, 2017
upstart
.gitignore Add cookiecutter skeleton Jan 20, 2017
LICENSE
Makefile.plugin
README.md Add command for restoring board state from cass. Mar 20, 2017
setup.py Add cookiecutter skeleton Jan 20, 2017

README.md

place

April Fools 2017

Installation

Install the plugin itself.

cd ~/src/place
python setup.py build
sudo python setup.py develop

Then add the plugin to your ini file:

############################################ PLUGINS
# which plugins are enabled (they must be installed via setup.py first)
-plugins = about, liveupdate
+plugins = about, liveupdate, place

Update your development.update file:

+place_redis_url = redis://localhost:6380/

Finally, you'll need redis running. You can run it in the background or in a screen session, or set up some fancy upstart stuff if you're crazy.

wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make

Then run:

src/redis-server --port 6380

Restoring the Board

In case redis needs to be restarted or gets cleared for whatever reason, you can re-load the board from Cassandra:

from reddit_place.lib import restore_redis_board_from_cass
restore_redis_board_from_cass()