authelia/internal/suites/example/compose/authelia/resources/entrypoint-backend.sh
Clément Michaud eec6424bc9
[DEV] Debug authelia when running a suite. (#1060)
* [DEV] Debug authelia when running a suite.

This runs dlv debugger within authelia backend container so that an IDE can remote
debug the application using port 2345.

* Apply suggestions from code review

Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
2020-06-01 16:50:55 +10:00

18 lines
409 B
Bash
Executable File

#!/bin/sh
set -x
# We move out of the workspace to not include the modules as dependencies of the project.
cd /
echo "Use hot reloaded version of Authelia backend"
go get github.com/cespare/reflex
go get github.com/go-delve/delve/cmd/dlv
cd /app
# Sleep 10 seconds to wait the end of npm install updating web directory
# and making reflex reload multiple times.
sleep 10
reflex -c /resources/reflex.conf