Skip to content

Commit

Permalink
chore: don't open psql to avoid dev dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Kailari committed Oct 18, 2024
1 parent 83b0a97 commit 7c01419
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions scripts/start_local_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,11 @@ kotorekisteri_start_tmux() {
info "Starting new tmux session..."
tmux new-session -d -s $SESS_NAME

# Window 0:database
# Window 0:database docker
WINDOW="database"
# database: left pane (docker running)
tmux rename-window -t $SESS_NAME:0 "$WINDOW"
tmux send-keys -t $SESS_NAME:"$WINDOW.0" "$REPO_ROOT/scripts/start_database_docker.sh" C-m

# database: right pane (psql)
tmux split-window -h -t "${SESSION-}":"$WINDOW"
tmux send-keys -t $SESS_NAME:"$WINDOW.1" "(cd $REPO_ROOT/server &&
echo \"Waiting 10 seconds before opening psql...\" && sleep 5 &&
echo \"Waiting 05 seconds before opening psql...\" && sleep 5 &&
psql postgresql://kitu:kitu@localhost:5432/kitu-dev)" C-m

# Window 1:idea
WINDOW="idea"
tmux new-window -t $SESS_NAME -n "idea"
Expand Down Expand Up @@ -100,5 +92,4 @@ if [[ "$SETUP_ONLY" == "true" ]]; then
fi

require_command tmux
require_command psql
kotorekisteri_start_tmux

0 comments on commit 7c01419

Please sign in to comment.