diff --git a/deploy-saleor.sh b/deploy-saleor.sh index 1003152..7ec0841 100644 --- a/deploy-saleor.sh +++ b/deploy-saleor.sh @@ -302,6 +302,16 @@ if [ "$vOPT" = "true" ]; then if [ "$VERSION" = "" ]; then VERSION="2.11.1" fi +else + VERSION="2.11.1" +fi +# +if [ "$STATIC_URL" = "" ]; then + APIURI="/static/" +fi +# +if [ "$MEDIA_URL" = "" ]; then + APIURI="/media/" fi ######################################################################################### @@ -491,6 +501,8 @@ sudo sed "s|{dburl}|$DB_URL| s|{emailurl}|$EMAIL_URL| s/{chosts}/$C_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 wait ######################################################################################### diff --git a/resources/saleor/template.env b/resources/saleor/template.env index 212a091..7493cfc 100644 --- a/resources/saleor/template.env +++ b/resources/saleor/template.env @@ -1,7 +1,7 @@ -PROJECT_ROOT="{proot}" +#PROJECT_ROOT="{proot}" -DEFAULT_COUNTRY="{country}" -DEFAULT_CURRENCY="{currency}" +#DEFAULT_COUNTRY="{country}" +#DEFAULT_CURRENCY="{currency}" ALLOWED_CLIENT_HOSTS="{chosts}" ALLOWED_HOSTS="{ahosts}" @@ -13,7 +13,7 @@ DATABASE_URL="{dburl}" EMAIL_URL="{emailurl}" #SENDGRID_USERNAME="{sguser}" #SENDGRID_PASSWORD="{sgpass}" -DEFAULT_FROM_EMAIL="{dfemail}" +#DEFAULT_FROM_EMAIL="{dfemail}" STATIC_URL="{static}" MEDIA_URL="{media}"