From bfdd08e279746354db356748ebfd7894c209914c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Laurent?= <francois.laurent@posteo.net> Date: Wed, 8 Jun 2022 21:04:07 +0200 Subject: [PATCH] seek for backends in the project root dir per default --- scripts/larvatagger.sh | 3 ++- src/editor.jl | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/larvatagger.sh b/scripts/larvatagger.sh index f7ad157..e90e367 100755 --- a/scripts/larvatagger.sh +++ b/scripts/larvatagger.sh @@ -37,7 +37,8 @@ docker build -t "${LARVATAGGER_IMAGE}:dev" -f recipes/Dockerfile.local ${DOCKER_ elif [ "$BUILD" == "--stable" ]; then docker build -t "${LARVATAGGER_IMAGE}:stable" -f recipes/Dockerfile ${DOCKER_ARGS}. else -docker build -t "${LARVATAGGER_IMAGE}:latest" -f recipes/Dockerfile ${DOCKER_ARGS}--build-arg BRANCH=dev . +if [ -z "$LARVATAGGER_DEFAULT_BRANCH" ]; then LARVATAGGER_DEFAULT_BRANCH=dev; fi +docker build -t "${LARVATAGGER_IMAGE}:latest" -f recipes/Dockerfile ${DOCKER_ARGS}--build-arg BRANCH=$LARVATAGGER_DEFAULT_BRANCH . fi #rm -rf ./external ;; diff --git a/src/editor.jl b/src/editor.jl index b1c11cd..9c5216d 100644 --- a/src/editor.jl +++ b/src/editor.jl @@ -25,8 +25,10 @@ function JSServe.jsrender(session::Session, ev::EditorView) class="flex flex-row")) end +projectdir = dirname(Base.active_project()) + function larvaeditor(path=nothing; allow_multiple_tags::Union{Nothing, Bool}=nothing, - backend_directory::String=".") + backend_directory::String=projectdir) # to (re-)load a file, the app is reloaded with the filepath as sole information # from previous session -- GitLab