Skip to content

Commit 2ec6506

Browse files
committed
chore(scripts): add engine shell command
1 parent d825c16 commit 2ec6506

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
echo ""
20+
21+
# Open subshell (use user's preferred shell or default to bash)
22+
exec "${SHELL:-bash}"

0 commit comments

Comments
 (0)