13 lines
314 B
Bash
Executable File
13 lines
314 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
# Change directory to the root of the project
|
|
cd "$(dirname "$0")/.."
|
|
|
|
# Run an instance that advertises itself to the origin API.
|
|
export PORT="${PORT:-4444}"
|
|
export API="${API:-http://localhost:4442}" # TODO support HTTPS
|
|
export NODE="${NODE:-https://localhost:$PORT}"
|
|
|
|
./dev/relay
|