set synctexBaseDir: () -> "/compile" if using docker in docker

This commit is contained in:
Henry Oswald 2016-05-31 15:16:31 +01:00
parent 2c53672dbd
commit 8a25755b8a
2 changed files with 6 additions and 0 deletions

View file

@ -106,5 +106,7 @@ ENV SHARELATEX_CONFIG /etc/sharelatex/settings.coffee
EXPOSE 80
WORKDIR /
ENTRYPOINT ["/sbin/my_init"]

View file

@ -499,6 +499,10 @@ if process.env["DOCKER_IN_DOCKER"] == "true"
PATH: process.env["COMPILER_PATH"] or "/usr/local/texlive/2015/bin/x86_64-linux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
user: "www-data"
if !settings.path?
settings.path = {}
settings.path.synctexBaseDir = () -> "/compile"
# Templates
# ---------