mirror of
https://github.com/m0wer/tiddlywiki-docker.git
synced 2026-01-23 02:24:25 +00:00
Merge pull request #10 from cornernote/patch-1
allow plugins via environment variable
This commit is contained in:
commit
fafc396148
1 changed files with 6 additions and 1 deletions
|
|
@ -16,6 +16,11 @@ if [ ! -d /var/lib/tiddlywiki/mywiki ]; then
|
|||
mkdir /var/lib/tiddlywiki/mywiki/tiddlers
|
||||
fi
|
||||
|
||||
# Define plugins, see https://tiddlywiki.com/static/Using%2520TiddlyWiki%2520on%2520Node.js.html
|
||||
if [ -n "$PLUGINS" ]; then
|
||||
plugins_params="$PLUGINS"
|
||||
fi
|
||||
|
||||
# Configure listen command, see https://tiddlywiki.com/static/ListenCommand.html
|
||||
listen_params="host=0.0.0.0 port=8080"
|
||||
listen_params="$listen_params debug-level=${DEBUG_LEVEL-none}"
|
||||
|
|
@ -28,4 +33,4 @@ if [ -n "$USERNAME" ]; then
|
|||
fi
|
||||
|
||||
# Start the tiddlywiki server
|
||||
exec /usr/bin/env node $NODEJS_V8_ARGS $tiddlywiki_script mywiki --listen $listen_params
|
||||
exec /usr/bin/env node $NODEJS_V8_ARGS $tiddlywiki_script $plugins_params mywiki --listen $listen_params
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue