added debugging and new moving commands

This commit is contained in:
Henry Oswald
2018-03-16 17:30:11 +00:00
parent f4226ecd0e
commit 17c51c2ba0
3 changed files with 11 additions and 6 deletions

View File

@@ -144,6 +144,10 @@ app.get "/smoke_test_force", (req, res)->
smokeTest.run(require.resolve(__dirname + "/test/smoke/js/SmokeTests.js"))(req, res)
#TODO delete this
app.get "/settings", (req, res)->
res.json(Settings)
profiler = require "v8-profiler"
app.get "/profile", (req, res) ->
time = parseInt(req.query.time || "1000")

View File

@@ -1,10 +1,14 @@
#!/bin/sh
echo "Changing permissions of /var/run/docker.sock for sibling containers"
cp /var/clsi/bin/synctex /var/clsi/bin/synctex-mount/synctex
chown root:docker /var/run/docker.sock
chown app:app /app/compiles
mkdir -p /app/cache
chown -R app:app /app/cache
mkdir -p /app/compiles
chown -R app:app /app/compiles
./bin/install_texlive_gce.sh
exec runuser -u app "$@"

View File

@@ -4,8 +4,5 @@ apt-get install poppler-utils vim ghostscript --yes
npm rebuild
usermod -aG docker app
mkdir -p /app/cache
chown -R app:app /app/cache
cp /app/bin/synctex /app/bin/synctex-mount/synctex
mkdir -p /app/compiles
chown -R app:app /app/compiles