GeminaboxPlus is a ready-to-go application for Geminabox (https://github.com/cwninja/geminabox) with background reindexing.
Reindexing tasks are handled by Resque offline so you don't have to wait around for your browser to timeout on hosts with a lot of gems.
- Setup a redis server. If you're already got one, great! If not,
apt-get install redis-serveror
brew install redis, or whatever.
- Make a copy of
config/config.ymland set the options as appropriate.
- Run it with your webserver of choice (Passegner, Thin, Unicorn, etc.).
- Spin up a worker using
Here's an Upstart script for spooling up a Resque worker and keeping it alive. Make sure to change
BASEDIR to your appropriate values.
description "Runs a resque worker for geminaboxplus." start on (local-filesystems and net-device-up IFACE=eth0) stop on shutdown script WEBUSER=www-data BASEDIR=/path/to/geminaboxplus PIDFILE=$BASEDIR/pids/resque-worker.pid LOGFILE=$BASEDIR/log/resque-worker.log echo $$ > $PIDFILE chown $WEBUSER:$WEBUSER $PIDFILE exec su -c "cd $BASEDIR && QUEUE=reindex PIDFILE=$PIDFILE bundle exec rake resque:work >> $LOGFILE 2>&1" $WEBUSER end script
Check out sam's original repository for GeminaboxPlus for a version that uses
redis-directory for Redis configuration.