Skip to content

Commit

Permalink
Get rid of a reference to Mongo
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael committed Dec 29, 2010
1 parent 64c31af commit 0328c16
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Termfile
Expand Up @@ -5,15 +5,14 @@
# If you do
# terminitor start
# from the Diaspora root directory, it will open a new terminal window with
# 4 tabs: mongo, redis, resque, and jasmine.
# 3 tabs: redis, resque, and jasmine.
#
# You need to install the terminitor gem. It's not in the Gemfile because it
# causes problems on some flavors of linux.
# gem install terminitor
#
# You should set MONGO_ROOT and REDIS_ROOT before running terminitor start.
# You should set REDIS_ROOT before running terminitor start.
# You might want to do that in your .bash_profile.
# export MONGO_ROOT=/full/path/to/mongo/without/the/bin
# export REDIS_ROOT=/full/path/to/redis/without/the/bin
# You can also set DIASPORA_ROOT in a similar way if you don't want it to be
# the directory this file is in.
Expand All @@ -28,13 +27,9 @@ def get_var_for(env_var_name)
end
end

before { system "sudo ls" } # this ensures mongo and redis can start right away
before { system "sudo ls" } # this ensures redis can start right away

window do
tab :name => "mongod" do
run "cd #{get_var_for('MONGO_ROOT')}"
run "sudo ./bin/mongod"
end
tab :name => "redis" do
run "cd #{get_var_for('REDIS_ROOT')}"
run "sudo ./bin/redis-server"
Expand Down

0 comments on commit 0328c16

Please sign in to comment.