-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a Docker Image for Web (#4533)
- Loading branch information
1 parent
e34749f
commit ae6a25f
Showing
7 changed files
with
53 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
window.omnivoreEnv = { | ||
SERVER_BASE_URL: "{{SERVER_BASE_URL}}", | ||
BASE_URL: "{{BASE_URL}}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters