mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-22 10:55:19 -04:00
+ Added md5 library
+ Removed unused file
This commit is contained in:
parent
a25b2f153d
commit
d5fc578f73
2 changed files with 1 additions and 32 deletions
|
@ -1,31 +0,0 @@
|
|||
config = require 'server_config'
|
||||
|
||||
#TODO: Could kill current coco server here.
|
||||
|
||||
requrie('')
|
||||
|
||||
npm = require "npm"
|
||||
npm.load npm.config, (err) ->
|
||||
if err
|
||||
console.log "Loading npm failed:",err
|
||||
return
|
||||
|
||||
|
||||
npm.commands.install ["ffi"], (er, data) ->
|
||||
|
||||
|
||||
# log the error or data
|
||||
npm.on "log", (message) ->
|
||||
|
||||
# log the progress of the installation
|
||||
console.log message
|
||||
return
|
||||
|
||||
|
||||
if '--clean' in process.argv
|
||||
# TODO: What if mongo is not running?
|
||||
require('server\commons\databse').connect()
|
||||
mongoose = require 'mongoose'
|
||||
mongoose.connection.db.dropDatabase()
|
||||
|
||||
# TODO: Could advice to start SCOCODE.bat et al. here
|
|
@ -14,7 +14,7 @@ May need an initial npm install upfront if newly checked out. \n
|
|||
|
||||
' if '--help' in process.argv
|
||||
|
||||
#TODO: MD5 Verification, using http://23.21.59.137/dump.md5
|
||||
#TODO: MD5 Verification, using http://23.21.59.137/dump.md5 using digest stream https://github.com/jeffbski/digest-stream
|
||||
dbDump = 'http://23.21.59.137/dump.tar.gz' # Don't change this unless you know what you're doing
|
||||
dbLocalPath = '../temp'
|
||||
|
||||
|
|
Loading…
Reference in a new issue