Skip to content

Commit

Permalink
Add build and run helper and define ALLOWED_HOSTS
Browse files Browse the repository at this point in the history
  • Loading branch information
crcastle committed Jun 25, 2022
1 parent 3b59112 commit ee32fa9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions helpers/variables.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -e # exit on error

export RSA_PRIVATE_KEY=$(cat /etc/secrets/saleor-key)
export ALLOWED_HOSTS=$RENDER_EXTERNAL_HOSTNAME
2 changes: 1 addition & 1 deletion render-build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -e # exit on error

export RSA_PRIVATE_KEY=$(cat /etc/secrets/saleor-key)
source helpers/variables.sh

pip3 install -r requirements.txt

Expand Down
2 changes: 1 addition & 1 deletion render-start.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -e # exit on error

export RSA_PRIVATE_KEY=$(cat /etc/secrets/saleor-key)
source helpers/variables.sh


subcommand=$1
Expand Down

0 comments on commit ee32fa9

Please sign in to comment.