From a0e43f555994ae3265681ad1c784c3487bc1acea Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Mon, 24 Nov 2014 16:13:17 +0000 Subject: [PATCH 1/3] force an npm rebuild to work around issue #129, missing bcrypt bindings file see https://github.com/npm/npm/issues/5400 --- server-ce/Gruntfile.coffee | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/server-ce/Gruntfile.coffee b/server-ce/Gruntfile.coffee index d9c5114557..cb75fed1c2 100644 --- a/server-ce/Gruntfile.coffee +++ b/server-ce/Gruntfile.coffee @@ -153,18 +153,22 @@ module.exports = (grunt) -> return callback(error) if error? Helpers.installNpmModules service, (error) -> return callback(error) if error? - Helpers.runGruntInstall service, (error) -> + Helpers.rebuildNpmModules service, (error) -> return callback(error) if error? - callback() + Helpers.runGruntInstall service, (error) -> + return callback(error) if error? + callback() updateService: (service, callback = (error) ->) -> Helpers.updateGitRepo service, (error) -> return callback(error) if error? Helpers.installNpmModules service, (error) -> return callback(error) if error? - Helpers.runGruntInstall service, (error) -> + Helpers.rebuildNpmModules service, (error) -> return callback(error) if error? - callback() + Helpers.runGruntInstall service, (error) -> + return callback(error) if error? + callback() cloneGitRepo: (service, callback = (error) ->) -> repo_src = service.repo @@ -207,13 +211,21 @@ module.exports = (grunt) -> proc = spawn "git", ["push", "--tags"], cwd: dir, stdio: "inherit" proc.on "close", () -> callback() - + installNpmModules: (service, callback = (error) ->) -> dir = service.name proc = spawn "npm", ["install"], stdio: "inherit", cwd: dir proc.on "close", () -> 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) ->) -> DIRS = [ "tmp/dumpFolder" From 9df88828358dba2d1802b567060f31ffb0aca3eb Mon Sep 17 00:00:00 2001 From: James Allen Date: Thu, 4 Dec 2014 10:11:29 +0000 Subject: [PATCH 2/3] Update README.md --- server-ce/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server-ce/README.md b/server-ce/README.md index 84dff1826b..7239983343 100644 --- a/server-ce/README.md +++ b/server-ce/README.md @@ -78,6 +78,10 @@ The backend API for managing project tags (folders). 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 ------------ From f33d9956f9ebeac913ccef98f80249414c782800 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Thu, 15 Jan 2015 12:30:42 +0000 Subject: [PATCH 3/3] added minimum memory requirements --- server-ce/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server-ce/README.md b/server-ce/README.md index 7239983343..5592c47b73 100644 --- a/server-ce/README.md +++ b/server-ce/README.md @@ -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. * [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 ------------------