Something went wrong. Try again.
Perl game server for TLE Community
Something went wrong. Try again.
1234567891011121314151617LOG_DIR="${LACUNA_LOG_DIR:-/home/lacuna/server/log}/server"mkdir -p "$LOG_DIR" || { echo "startdev.sh: cannot create $LOG_DIR" >&2; exit 1; }
cd /home/lacuna/server/bin
# Refuse to start against a database the code doesn't match, rather than# either running stale or silently migrating out from under a dev session --# see check_db_migration.pl. Run migrate_db.pl to bring it up to date.perl check_db_migration.pl || exit 1
# The app's own logging goes to log/server/lacuna.log via Log4perl (see# etc-*/log4perl.conf). This tee only captures plackup's framework noise --# warnings, "Server Started", stack traces -- which never passes through# Log::Any. Keeping it in `docker logs` too, hence tee rather than a plain >>.exec plackup --env development --server Plack::Handler::Standalone --app lacuna.psgi \ > >(tee -a "$LOG_DIR/plackup.log") 2>&1