mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 14:03:28 -04:00
Update Mongo
This updates the installer script to use the latest mongo (v2.6 nightly)
This commit is contained in:
parent
1e2ada7b57
commit
98adf2fe4f
2 changed files with 7 additions and 7 deletions
scripts/devSetup
|
@ -39,8 +39,8 @@ class SetupFactory(object):
|
|||
mongo_version_string = mongo_version_string.decode(encoding='UTF-8')
|
||||
except:
|
||||
print("Mongod not found.")
|
||||
if "v2.5.4" not in mongo_version_string:
|
||||
print("MongoDB 2.5.4 not found, so installing...")
|
||||
if "v2.6." not in mongo_version_string:
|
||||
print("MongoDB not found, so installing...")
|
||||
self.mongo.download_dependencies()
|
||||
self.mongo.install_dependencies()
|
||||
self.node.download_dependencies()
|
||||
|
|
|
@ -79,10 +79,10 @@ class LinuxMongoDBDownloader(MongoDBDownloader):
|
|||
@property
|
||||
def download_url(self):
|
||||
if self.dependency.config.mem_width == 64:
|
||||
return u"http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.5.4.tgz"
|
||||
return u"http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-latest.tgz"
|
||||
else:
|
||||
warnings.warn(u"MongoDB *really* doesn't run well on 32 bit systems. You have been warned.")
|
||||
return u"http://fastdl.mongodb.org/linux/mongodb-linux-i686-2.5.4.tgz"
|
||||
return u"http://fastdl.mongodb.org/linux/mongodb-linux-i686-latest.tgz"
|
||||
|
||||
class WindowsMongoDBDownloader(MongoDBDownloader):
|
||||
@property
|
||||
|
@ -90,13 +90,13 @@ class WindowsMongoDBDownloader(MongoDBDownloader):
|
|||
#TODO: Implement Windows Vista detection
|
||||
warnings.warn(u"If you have a version of Windows older than 7, MongoDB may not function properly!")
|
||||
if self.dependency.config.mem_width == 64:
|
||||
return u"http://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-2.5.4.zip"
|
||||
return u"http://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-latest.zip"
|
||||
else:
|
||||
return u"http://fastdl.mongodb.org/win32/mongodb-win32-i386-2.5.4.zip"
|
||||
return u"http://fastdl.mongodb.org/win32/mongodb-win32-i386-latest.zip"
|
||||
|
||||
class MacMongoDBDownloader(MongoDBDownloader):
|
||||
@property
|
||||
def download_url(self):
|
||||
return u"http://fastdl.mongodb.org/osx/mongodb-osx-x86_64-2.5.4.tgz"
|
||||
return u"http://fastdl.mongodb.org/osx/mongodb-osx-x86_64-v2.4-latest.tgz"
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue