mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 16:43:36 -05:00
Provide hosts and siblings container as environment settings and add npm run start script
This commit is contained in:
parent
adaf742a7b
commit
08a0c6feb4
2 changed files with 18 additions and 12 deletions
|
@ -16,21 +16,10 @@ module.exports =
|
||||||
clsiCacheDir: Path.resolve(__dirname + "/../cache")
|
clsiCacheDir: Path.resolve(__dirname + "/../cache")
|
||||||
synctexBaseDir: (project_id) -> Path.join(@compilesDir, project_id)
|
synctexBaseDir: (project_id) -> Path.join(@compilesDir, project_id)
|
||||||
|
|
||||||
# clsi:
|
|
||||||
# commandRunner: "docker-runner-sharelatex"
|
|
||||||
# docker:
|
|
||||||
# image: "quay.io/sharelatex/texlive-full:2017.1"
|
|
||||||
# env:
|
|
||||||
# HOME: "/tmp"
|
|
||||||
# socketPath: "/var/run/docker.sock"
|
|
||||||
# user: "tex"
|
|
||||||
# expireProjectAfterIdleMs: 24 * 60 * 60 * 1000
|
|
||||||
# checkProjectsIntervalMs: 10 * 60 * 1000
|
|
||||||
|
|
||||||
internal:
|
internal:
|
||||||
clsi:
|
clsi:
|
||||||
port: 3013
|
port: 3013
|
||||||
host: "localhost"
|
host: process.env["LISTEN_ADDRESS"] or "localhost"
|
||||||
|
|
||||||
|
|
||||||
apis:
|
apis:
|
||||||
|
@ -40,3 +29,16 @@ module.exports =
|
||||||
smokeTest: false
|
smokeTest: false
|
||||||
project_cache_length_ms: 1000 * 60 * 60 * 24
|
project_cache_length_ms: 1000 * 60 * 60 * 24
|
||||||
parallelFileDownloads:1
|
parallelFileDownloads:1
|
||||||
|
|
||||||
|
if process.env["COMMAND_RUNNER"]
|
||||||
|
module.exports.clsi =
|
||||||
|
commandRunner: process.env["COMMAND_RUNNER"]
|
||||||
|
docker:
|
||||||
|
image: process.env["TEXLIVE_IMAGE"] or "quay.io/sharelatex/texlive-full:2017.1"
|
||||||
|
env:
|
||||||
|
HOME: "/tmp"
|
||||||
|
socketPath: "/var/run/docker.sock"
|
||||||
|
user: "tex"
|
||||||
|
expireProjectAfterIdleMs: 24 * 60 * 60 * 1000
|
||||||
|
checkProjectsIntervalMs: 10 * 60 * 1000
|
||||||
|
module.exports.path.sandboxedCompilesHostDir = process.env["COMPILES_HOST_DIR"]
|
||||||
|
|
|
@ -6,6 +6,10 @@
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/sharelatex/clsi-sharelatex.git"
|
"url": "https://github.com/sharelatex/clsi-sharelatex.git"
|
||||||
},
|
},
|
||||||
|
"scripts": {
|
||||||
|
"compile:app": "coffee -o app/js -c app/coffee && coffee -c app.coffee",
|
||||||
|
"start": "npm run compile:app && node app.js"
|
||||||
|
},
|
||||||
"author": "James Allen <james@sharelatex.com>",
|
"author": "James Allen <james@sharelatex.com>",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"async": "0.2.9",
|
"async": "0.2.9",
|
||||||
|
|
Loading…
Reference in a new issue