Skip to content
This repository has been archived by the owner on Sep 11, 2018. It is now read-only.

reddit-archive/reddit-plugin-place-opensource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()