This commit is contained in:
Vague Rabbit 2021-01-28 23:56:40 -08:00
parent c03907fab8
commit 650f401bd0
2 changed files with 16 additions and 4 deletions

View file

@ -302,6 +302,16 @@ if [ "$vOPT" = "true" ]; then
if [ "$VERSION" = "" ]; then if [ "$VERSION" = "" ]; then
VERSION="2.11.1" VERSION="2.11.1"
fi fi
else
VERSION="2.11.1"
fi
#
if [ "$STATIC_URL" = "" ]; then
APIURI="/static/"
fi
#
if [ "$MEDIA_URL" = "" ]; then
APIURI="/media/"
fi fi
######################################################################################### #########################################################################################
@ -491,6 +501,8 @@ sudo sed "s|{dburl}|$DB_URL|
s|{emailurl}|$EMAIL_URL| s|{emailurl}|$EMAIL_URL|
s/{chosts}/$C_HOSTS/ s/{chosts}/$C_HOSTS/
s/{ahosts}/$A_HOSTS/ s/{ahosts}/$A_HOSTS/
s|{static}|$STATIC_URL|
s|{media}|$MEDIA_URL|
s/{gqlorigins}/$QL_ORIGINS/" $HD/Deploy_Saleor/resources/saleor/template.env > $HD/saleor/.env s/{gqlorigins}/$QL_ORIGINS/" $HD/Deploy_Saleor/resources/saleor/template.env > $HD/saleor/.env
wait wait
######################################################################################### #########################################################################################

View file

@ -1,7 +1,7 @@
PROJECT_ROOT="{proot}" #PROJECT_ROOT="{proot}"
DEFAULT_COUNTRY="{country}" #DEFAULT_COUNTRY="{country}"
DEFAULT_CURRENCY="{currency}" #DEFAULT_CURRENCY="{currency}"
ALLOWED_CLIENT_HOSTS="{chosts}" ALLOWED_CLIENT_HOSTS="{chosts}"
ALLOWED_HOSTS="{ahosts}" ALLOWED_HOSTS="{ahosts}"
@ -13,7 +13,7 @@ DATABASE_URL="{dburl}"
EMAIL_URL="{emailurl}" EMAIL_URL="{emailurl}"
#SENDGRID_USERNAME="{sguser}" #SENDGRID_USERNAME="{sguser}"
#SENDGRID_PASSWORD="{sgpass}" #SENDGRID_PASSWORD="{sgpass}"
DEFAULT_FROM_EMAIL="{dfemail}" #DEFAULT_FROM_EMAIL="{dfemail}"
STATIC_URL="{static}" STATIC_URL="{static}"
MEDIA_URL="{media}" MEDIA_URL="{media}"