Skip to content

Commit

Permalink
Merge pull request #451 from zhullyb/env-replace-fix
Browse files Browse the repository at this point in the history
fix: replace '/' with '|' in docker-env-replace.sh
  • Loading branch information
ddiu8081 authored Nov 20, 2023
2 parents df594c9 + d955a76 commit 03b47a7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions hack/docker-env-replace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ site_password=$SITE_PASSWORD
openai_api_model=$OPENAI_API_MODEL

for file in $(find ./dist -type f -name "*.mjs"); do
sed "s/({}).OPENAI_API_KEY/\"$openai_api_key\"/g;
s/({}).HTTPS_PROXY/\"$https_proxy\"/g;
s/({}).OPENAI_API_BASE_URL/\"$openai_api_base_url\"/g;
s/({}).HEAD_SCRIPTS/\"$head_scripts\"/g;
s/({}).PUBLIC_SECRET_KEY/\"$public_secret_key\"/g;
s/({}).OPENAI_API_MODEL/\"$openai_api_model\"/g;
s/({}).SITE_PASSWORD/\"$site_password\"/g" $file > tmp
sed "s|({}).OPENAI_API_KEY|\"$openai_api_key\"|g;
s|({}).HTTPS_PROXY|\"$https_proxy\"|g;
s|({}).OPENAI_API_BASE_URL|\"$openai_api_base_url\"|g;
s|({}).HEAD_SCRIPTS|\"$head_scripts\"|g;
s|({}).PUBLIC_SECRET_KEY|\"$public_secret_key\"|g;
s|({}).OPENAI_API_MODEL|\"$openai_api_model\"|g;
s|({}).SITE_PASSWORD|\"$site_password\"|g" $file > tmp
mv tmp $file
done

Expand Down

1 comment on commit 03b47a7

@vercel
Copy link

@vercel vercel bot commented on 03b47a7 Nov 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.