Skip to content

Commit

Permalink
Add postgres connection to utils/tsdev.sh (#3256)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkppr authored Jan 7, 2025
1 parent 5a3827c commit 8e4df47
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions utils/tsdev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ help(){
echo " vue-install-deps Install vue frontend dependencies. Default: 'frontend-ng'"
echo " vue-test Test the vue frontend. Default: 'frontend-ng'"
echo " web Start the web frontend bound to port 5000"
echo " postgres Connect to the Timesketch postgres database."
echo
echo "Frontend:"
echo " frontend The old v1 frontend (deprecated)."
Expand Down Expand Up @@ -94,6 +95,9 @@ case "$1" in
web)
$s docker exec --interactive --tty $CONTAINER_ID gunicorn --reload --bind 0.0.0.0:5000 --log-level debug --capture-output --timeout 600 timesketch.wsgi:application
;;
postgres)
$s docker exec --interactive --tty postgres bash -c "psql -U timesketch -d timesketch"
;;
*)
echo \""$1"\" is not a valid command.; help
esac

0 comments on commit 8e4df47

Please sign in to comment.