-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
23 lines (20 loc) · 886 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require File.expand_path('../config/application', __FILE__)
require 'rake'
Brackets::Application.load_tasks
if ENV['COMPUTERNAME'] == 'WALLACE'
MONGOD_LOCATION = 'C:\Users\bjball\Documents\Libraries\mongodb-win32-x86_64-1.6.2\bin\mongod.exe'
MONGO_DATA_LOCATION = 'C:\Users\bjball\Documents\Libraries\mongodb-win32-x86_64-1.6.2\bin\test'
elsif ENV['COMPUTERNAME'] == 'COLOSSUS'
MONGOD_LOCATION = 'C:\mongo\bin\mongod'
MONGO_DATA_LOCATION = 'C:\mongo\bracketdata'
else
MONGOD_LOCATION = '~/Downloads/mongodb-osx-i386-1.6.2/bin/mongod'
MONGO_DATA_LOCATION = '~/Downloads/mongodb-osx-i386-1.6.2/bin/db'
end
namespace :mongo do
task :start do
sh "#{MONGOD_LOCATION} --dbpath #{MONGO_DATA_LOCATION}"
end
end