Skip to content

Instantly share code, notes, and snippets.

@lancelakey
Created October 14, 2012 10:05
Show Gist options
  • Save lancelakey/3888156 to your computer and use it in GitHub Desktop.
Save lancelakey/3888156 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -x
ps axfu | grep -iE 'ruby|java|node|redis|mongo|cassandra'
/etc/init.d/redis-server stop
/etc/init.d/mongodb stop
/etc/init.d/cassandra stop
rm -rf /var/lib/cassandra/*
rm -rf /usr/lib/ruby/gems/1.9.1/
rm -rf data/
rm -rf node_modules/
gem install rake rspec
/etc/init.d/cassandra start
sleep 10
rake storage
/etc/init.d/cassandra stop
timeout --kill-after=1m --signal=2 20s mongod run --port 27018 --quiet --smallfiles --dbpath data/mongo
rake update
timeout --kill-after=6m --signal=2 5m rake test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment