We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d825c16 commit 2ec6506Copy full SHA for 2ec6506
scripts/run/engine-postgres-shell.sh
@@ -0,0 +1,22 @@
1
+#!/usr/bin/env bash
2
+set -euo pipefail
3
+
4
+SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
5
+REPO_ROOT="$(cd "${SCRIPT_DIR}/../.." && pwd)"
6
7
+cd "${REPO_ROOT}"
8
9
+export RIVET__POSTGRES__URL=postgres://postgres:postgres@localhost:5432/postgres
10
+export RUST_LOG=debug
11
+export PATH="${REPO_ROOT}/target/debug:${REPO_ROOT}/target/release:${PATH}"
12
13
+echo "Opening subshell with Rivet engine environment variables..."
14
+echo "RIVET__POSTGRES__URL=${RIVET__POSTGRES__URL}"
15
+echo "RUST_LOG=${RUST_LOG}"
16
+echo "PATH=${PATH}"
17
+echo ""
18
+echo "Type 'exit' to leave the subshell."
19
20
21
+# Open subshell (use user's preferred shell or default to bash)
22
+exec "${SHELL:-bash}"
0 commit comments