mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-22 10:55:19 -04:00
+ Downloads
This commit is contained in:
parent
5cb47f3e76
commit
eab59ffac9
1 changed files with 1 additions and 4 deletions
|
@ -73,10 +73,7 @@ downloadDB = ->
|
|||
# TODO: What if mongo is not running?
|
||||
console.log "Downloading Database dump. It's big. This may take a while..."
|
||||
request = http.get dbDump, (response)->
|
||||
unzip = response.pipe npm = if process.platform is "win32" then "npm.cmd" else "npm"
|
||||
npminstall = run npm, ['update']
|
||||
npminstall.done ->
|
||||
bowerinstall = run 'bower', ['update'](zlib.createGunzip()).pipe(tar.Extract(path: dbLocalPath))
|
||||
unzip = response.pipe(zlib.createGunzip()).pipe(tar.Extract(path: dbLocalPath))
|
||||
# Log download
|
||||
currentChunk = 0
|
||||
cur = 0
|
||||
|
|
Loading…
Reference in a new issue