The admin interface now runs a git commit when files are saved.

This commit is contained in:
Nolan Darilek 2017-03-12 12:09:03 -05:00
parent 21019c02ca
commit f1fac8ca8f
3 changed files with 27 additions and 53 deletions

View File

@ -60,10 +60,16 @@ lib/x86_64-linux-gnu/libz.so.1.2.8
lib64/ld-linux-x86-64.so.2 lib64/ld-linux-x86-64.so.2
opt/app opt/app
opt/app/.git/HEAD opt/app/.git/HEAD
opt/app/.git/config
opt/app/.git/index
opt/app/.git/objects/5b/3b24544cfea847d096543cd6e4f1a8511331d0
opt/app/.git/objects/pack
opt/app/.git/refs
opt/app/.git/refs/heads/master opt/app/.git/refs/heads/master
opt/app/.sandstorm/launcher.sh opt/app/.sandstorm/launcher.sh
opt/app/Caddyfile opt/app/Caddyfile
opt/app/app.js opt/app/app.js
opt/app/commit-on-save
opt/app/node_modules/accepts/index.js opt/app/node_modules/accepts/index.js
opt/app/node_modules/accepts/package.json opt/app/node_modules/accepts/package.json
opt/app/node_modules/acorn-globals/index.js opt/app/node_modules/acorn-globals/index.js
@ -413,6 +419,8 @@ usr/lib/node_modules/npm/lib/utils/error-handler.js
usr/lib/node_modules/npm/lib/utils/error-message.js usr/lib/node_modules/npm/lib/utils/error-message.js
usr/lib/node_modules/npm/lib/utils/is-windows.js usr/lib/node_modules/npm/lib/utils/is-windows.js
usr/lib/node_modules/npm/lib/utils/lifecycle.js usr/lib/node_modules/npm/lib/utils/lifecycle.js
usr/lib/node_modules/npm/lib/utils/metrics-launch.js
usr/lib/node_modules/npm/lib/utils/metrics.js
usr/lib/node_modules/npm/lib/utils/no-progress-while-running.js usr/lib/node_modules/npm/lib/utils/no-progress-while-running.js
usr/lib/node_modules/npm/lib/utils/output.js usr/lib/node_modules/npm/lib/utils/output.js
usr/lib/node_modules/npm/lib/utils/parse-json.js usr/lib/node_modules/npm/lib/utils/parse-json.js
@ -480,6 +488,12 @@ usr/lib/node_modules/npm/node_modules/ini/package.json
usr/lib/node_modules/npm/node_modules/mkdirp/index.js usr/lib/node_modules/npm/node_modules/mkdirp/index.js
usr/lib/node_modules/npm/node_modules/mkdirp/package.json usr/lib/node_modules/npm/node_modules/mkdirp/package.json
usr/lib/node_modules/npm/node_modules/nopt/lib/nopt.js usr/lib/node_modules/npm/node_modules/nopt/lib/nopt.js
usr/lib/node_modules/npm/node_modules/nopt/node_modules/osenv/node_modules/os-homedir/index.js
usr/lib/node_modules/npm/node_modules/nopt/node_modules/osenv/node_modules/os-homedir/package.json
usr/lib/node_modules/npm/node_modules/nopt/node_modules/osenv/node_modules/os-tmpdir/index.js
usr/lib/node_modules/npm/node_modules/nopt/node_modules/osenv/node_modules/os-tmpdir/package.json
usr/lib/node_modules/npm/node_modules/nopt/node_modules/osenv/osenv.js
usr/lib/node_modules/npm/node_modules/nopt/node_modules/osenv/package.json
usr/lib/node_modules/npm/node_modules/nopt/package.json usr/lib/node_modules/npm/node_modules/nopt/package.json
usr/lib/node_modules/npm/node_modules/normalize-package-data/lib/extract_description.js usr/lib/node_modules/npm/node_modules/normalize-package-data/lib/extract_description.js
usr/lib/node_modules/npm/node_modules/normalize-package-data/lib/fixer.js usr/lib/node_modules/npm/node_modules/normalize-package-data/lib/fixer.js
@ -516,6 +530,7 @@ usr/lib/node_modules/npm/node_modules/npm-registry-client/lib/logout.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/lib/ping.js usr/lib/node_modules/npm/node_modules/npm-registry-client/lib/ping.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/lib/publish.js usr/lib/node_modules/npm/node_modules/npm-registry-client/lib/publish.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js usr/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/lib/send-anonymous-CLI-metrics.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/lib/star.js usr/lib/node_modules/npm/node_modules/npm-registry-client/lib/star.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/lib/stars.js usr/lib/node_modules/npm/node_modules/npm-registry-client/lib/stars.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/lib/tag.js usr/lib/node_modules/npm/node_modules/npm-registry-client/lib/tag.js
@ -539,53 +554,6 @@ usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/concat-st
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/concat-stream/node_modules/readable-stream/package.json usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/concat-stream/node_modules/readable-stream/package.json
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/concat-stream/node_modules/readable-stream/readable.js usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/concat-stream/node_modules/readable-stream/readable.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/concat-stream/package.json usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/concat-stream/package.json
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/log.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/are-we-there-yet/index.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/delegates/index.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/are-we-there-yet/node_modules/delegates/package.json
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/are-we-there-yet/package.json
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/are-we-there-yet/tracker-base.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/are-we-there-yet/tracker-group.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/are-we-there-yet/tracker-stream.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/are-we-there-yet/tracker.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/console-control-strings/index.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/console-control-strings/package.json
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/base-theme.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/error.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/has-color.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/index.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/object-assign/index.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/object-assign/package.json
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/signal-exit/index.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/signal-exit/package.json
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/signal-exit/signals.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/string-width/index.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/index.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/node_modules/number-is-nan/index.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/node_modules/number-is-nan/package.json
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/package.json
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/is-fullwidth-code-point/index.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/is-fullwidth-code-point/node_modules/number-is-nan/index.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/is-fullwidth-code-point/node_modules/number-is-nan/package.json
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/is-fullwidth-code-point/package.json
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/string-width/package.json
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/wide-align/align.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/wide-align/package.json
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/package.json
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/plumbing.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/process.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/progress-bar.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/render-template.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/set-immediate.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/set-interval.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/spin.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/template-item.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/theme-set.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/themes.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/wide-truncate.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/set-blocking/index.js
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/set-blocking/package.json
usr/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/package.json
usr/lib/node_modules/npm/node_modules/npm-registry-client/package.json usr/lib/node_modules/npm/node_modules/npm-registry-client/package.json
usr/lib/node_modules/npm/node_modules/npmlog/log.js usr/lib/node_modules/npm/node_modules/npmlog/log.js
usr/lib/node_modules/npm/node_modules/npmlog/node_modules/are-we-there-yet/index.js usr/lib/node_modules/npm/node_modules/npmlog/node_modules/are-we-there-yet/index.js
@ -848,12 +816,6 @@ usr/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/lib/stor
usr/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/package.json usr/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/package.json
usr/lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/index.js usr/lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/index.js
usr/lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/package.json usr/lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/package.json
usr/lib/node_modules/npm/node_modules/request/node_modules/uuid/index.js
usr/lib/node_modules/npm/node_modules/request/node_modules/uuid/lib/bytesToUuid.js
usr/lib/node_modules/npm/node_modules/request/node_modules/uuid/lib/rng.js
usr/lib/node_modules/npm/node_modules/request/node_modules/uuid/package.json
usr/lib/node_modules/npm/node_modules/request/node_modules/uuid/v1.js
usr/lib/node_modules/npm/node_modules/request/node_modules/uuid/v4.js
usr/lib/node_modules/npm/node_modules/request/package.json usr/lib/node_modules/npm/node_modules/request/package.json
usr/lib/node_modules/npm/node_modules/request/request.js usr/lib/node_modules/npm/node_modules/request/request.js
usr/lib/node_modules/npm/node_modules/retry/index.js usr/lib/node_modules/npm/node_modules/retry/index.js
@ -875,6 +837,12 @@ usr/lib/node_modules/npm/node_modules/uid-number/package.json
usr/lib/node_modules/npm/node_modules/uid-number/uid-number.js usr/lib/node_modules/npm/node_modules/uid-number/uid-number.js
usr/lib/node_modules/npm/node_modules/umask/index.js usr/lib/node_modules/npm/node_modules/umask/index.js
usr/lib/node_modules/npm/node_modules/umask/package.json usr/lib/node_modules/npm/node_modules/umask/package.json
usr/lib/node_modules/npm/node_modules/uuid/index.js
usr/lib/node_modules/npm/node_modules/uuid/lib/bytesToUuid.js
usr/lib/node_modules/npm/node_modules/uuid/lib/rng.js
usr/lib/node_modules/npm/node_modules/uuid/package.json
usr/lib/node_modules/npm/node_modules/uuid/v1.js
usr/lib/node_modules/npm/node_modules/uuid/v4.js
usr/lib/node_modules/npm/node_modules/validate-npm-package-license/index.js usr/lib/node_modules/npm/node_modules/validate-npm-package-license/index.js
usr/lib/node_modules/npm/node_modules/validate-npm-package-license/node_modules/spdx-correct/index.js usr/lib/node_modules/npm/node_modules/validate-npm-package-license/node_modules/spdx-correct/index.js
usr/lib/node_modules/npm/node_modules/validate-npm-package-license/node_modules/spdx-correct/node_modules/spdx-license-ids/package.json usr/lib/node_modules/npm/node_modules/validate-npm-package-license/node_modules/spdx-correct/node_modules/spdx-license-ids/package.json

View File

@ -3,4 +3,5 @@ errors stderr
log stdout log stdout
hugo /var/git { hugo /var/git {
allow_commands false allow_commands false
after_save "/opt/app/commit-on-save {path}"
} }

5
commit-on-save Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
cd /var/git
git add $1
git commit $1 -m "Saved $1 via administrative interface."
/var/git/.git/hooks/post-receive