This commit is contained in:
Henry Oswald 2015-01-28 17:50:54 +00:00
commit 93b091d84f
2 changed files with 24 additions and 6 deletions

View file

@ -171,18 +171,22 @@ module.exports = (grunt) ->
return callback(error) if error? return callback(error) if error?
Helpers.installNpmModules service, (error) -> Helpers.installNpmModules service, (error) ->
return callback(error) if error? return callback(error) if error?
Helpers.runGruntInstall service, (error) -> Helpers.rebuildNpmModules service, (error) ->
return callback(error) if error? return callback(error) if error?
callback() Helpers.runGruntInstall service, (error) ->
return callback(error) if error?
callback()
updateService: (service, callback = (error) ->) -> updateService: (service, callback = (error) ->) ->
Helpers.updateGitRepo service, (error) -> Helpers.updateGitRepo service, (error) ->
return callback(error) if error? return callback(error) if error?
Helpers.installNpmModules service, (error) -> Helpers.installNpmModules service, (error) ->
return callback(error) if error? return callback(error) if error?
Helpers.runGruntInstall service, (error) -> Helpers.rebuildNpmModules service, (error) ->
return callback(error) if error? return callback(error) if error?
callback() Helpers.runGruntInstall service, (error) ->
return callback(error) if error?
callback()
cloneGitRepo: (service, callback = (error) ->) -> cloneGitRepo: (service, callback = (error) ->) ->
repo_src = service.repo repo_src = service.repo
@ -225,13 +229,21 @@ module.exports = (grunt) ->
proc = spawn "git", ["push", "--tags"], cwd: dir, stdio: "inherit" proc = spawn "git", ["push", "--tags"], cwd: dir, stdio: "inherit"
proc.on "close", () -> proc.on "close", () ->
callback() callback()
installNpmModules: (service, callback = (error) ->) -> installNpmModules: (service, callback = (error) ->) ->
dir = service.name dir = service.name
proc = spawn "npm", ["install"], stdio: "inherit", cwd: dir proc = spawn "npm", ["install"], stdio: "inherit", cwd: dir
proc.on "close", () -> proc.on "close", () ->
callback() callback()
# work around for https://github.com/npm/npm/issues/5400
# where binary modules are not built due to bug in npm
rebuildNpmModules: (service, callback = (error) ->) ->
dir = service.name
proc = spawn "npm", ["rebuild"], stdio: "inherit", cwd: dir
proc.on "close", () ->
callback()
createDataDirs: (callback = (error) ->) -> createDataDirs: (callback = (error) ->) ->
DIRS = [ DIRS = [
"tmp/dumpFolder" "tmp/dumpFolder"

View file

@ -26,6 +26,8 @@ ShareLaTeX should run on OS X and Linux. You need:
* A local instance of [Redis](http://redis.io/topics/quickstart) (version 2.6.12 or later) and [MongoDB](http://docs.mongodb.org/manual/installation/) running on their standard ports. * A local instance of [Redis](http://redis.io/topics/quickstart) (version 2.6.12 or later) and [MongoDB](http://docs.mongodb.org/manual/installation/) running on their standard ports.
* [TeXLive](https://www.tug.org/texlive/) 2013 or later with the `latexmk` program installed. * [TeXLive](https://www.tug.org/texlive/) 2013 or later with the `latexmk` program installed.
ShareLaTeX needs a minimum of 2gb of memory, it is likely to be more than that though depending on usage.
Other repositories Other repositories
------------------ ------------------
@ -78,6 +80,10 @@ The backend API for managing project tags (folders).
An API for running server-side spelling checking on ShareLaTeX documents. An API for running server-side spelling checking on ShareLaTeX documents.
Dropbox
-------
Please note that certain features like Dropbox integration are not functional in the open source code base yet, despite appearing in the user interface. We're working on this, sorry!
Contributing Contributing
------------ ------------