mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Some checks failed
Build Docker Images / Build docker images (push) Has been cancelled
Build Self-Hosting Docker Images / Build self-host docker images (push) Has been cancelled
Run tests / Run Codebase tests (push) Has been cancelled
Run tests / Build docker images (push) Has been cancelled
21 lines
614 B
Bash
21 lines
614 B
Bash
#!/bin/sh
|
|
|
|
if [ -z "$SERVER_BASE_URL" ]; then
|
|
echo "Error: SERVER_BASE_URL environment variable is not set."
|
|
exit 1
|
|
fi
|
|
|
|
file_contents=$(cat /app/packages/web/public/env.js)
|
|
new_contents=${file_contents//\{\{SERVER_BASE_URL\}\}/$SERVER_BASE_URL}
|
|
echo "$new_contents" > /app/packages/web/public/env.js
|
|
|
|
if [ -z "$BASE_URL" ]; then
|
|
echo "Error: BASE_URL environment variable is not set."
|
|
exit 1
|
|
fi
|
|
|
|
file_contents=$(cat /app/packages/web/public/env.js)
|
|
new_contents=${file_contents//\{\{BASE_URL\}\}/$BASE_URL}
|
|
echo "$new_contents" > /app/packages/web/public/env.js
|
|
|
|
yarn workspace @omnivore/web start
|