-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add sessions and admin dashboard
- Loading branch information
1 parent
00c2d3b
commit 5f45d1f
Showing
20 changed files
with
435 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
.sqlx/query-fd38cf14ff2cfa9fd9785c21d6a4b5dab10dc57a1995f8aecce5a0c71ce2913d.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -x | ||
set -eo pipefail | ||
|
||
RUNNING_CONTAINER=$(docker ps --filter 'name=redis' --format '{{.ID}}') | ||
if [[ -n $RUNNING_CONTAINER ]]; then | ||
echo >&2 "there is a redis container already running, kill it with" | ||
echo >&2 " docker kill ${RUNNING_CONTAINER}" | ||
exit 1 | ||
fi | ||
|
||
docker run \ | ||
-p 6379:6379 \ | ||
-d \ | ||
--name "redis_$(date '+%s')" \ | ||
redis:7 | ||
|
||
echo >%2 "Redis is ready to go!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.