^
This commit is contained in:
parent
9ddad3c290
commit
4c31fa9e1b
2 changed files with 8 additions and 8 deletions
|
@ -18,7 +18,7 @@ do
|
||||||
read SAME_HOST
|
read SAME_HOST
|
||||||
done
|
done
|
||||||
# Get the API host IP or domain
|
# Get the API host IP or domain
|
||||||
if [ "SAME_HOST" = "no" ]; then
|
if [ "$SAME_HOST" = "no" ]; then
|
||||||
while [ "$APP_HOST" = "" ]
|
while [ "$APP_HOST" = "" ]
|
||||||
do
|
do
|
||||||
echo ""
|
echo ""
|
||||||
|
@ -43,7 +43,7 @@ done
|
||||||
# Build the API URL
|
# Build the API URL
|
||||||
API_URL="http://$API_HOST:$API_PORT/$APIURI/"
|
API_URL="http://$API_HOST:$API_PORT/$APIURI/"
|
||||||
# Write the production .env file from template.env
|
# Write the production .env file from template.env
|
||||||
if [ "SAME_HOST" = "no" ]; then
|
if [ "$SAME_HOST" = "no" ]; then
|
||||||
sudo sed "s|{api_url}|$API_URL|
|
sudo sed "s|{api_url}|$API_URL|
|
||||||
s|{app_mount_uri}|$APP_MOUNT_URI|
|
s|{app_mount_uri}|$APP_MOUNT_URI|
|
||||||
s|{app_host}|$APP_HOST|" $HD/Deploy_Saleor/resources/saleor-dashboard/template.env > $HD/saleor-dashboard/.env
|
s|{app_host}|$APP_HOST|" $HD/Deploy_Saleor/resources/saleor-dashboard/template.env > $HD/saleor-dashboard/.env
|
||||||
|
|
|
@ -281,24 +281,24 @@ sleep 3
|
||||||
#########################################################################################
|
#########################################################################################
|
||||||
echo "Please provide details for your Saleor API instillation..."
|
echo "Please provide details for your Saleor API instillation..."
|
||||||
echo ""
|
echo ""
|
||||||
# Get the Dashboard & GraphQL host domain
|
# Get the API host domain
|
||||||
while [ "$HOST" = "" ]
|
while [ "$HOST" = "" ]
|
||||||
do
|
do
|
||||||
echo -n "Enter the Dashboard & GraphQL host domain:"
|
echo -n "Enter the API host domain:"
|
||||||
read HOST
|
read HOST
|
||||||
done
|
done
|
||||||
# Get the API host IP or domain
|
# Get the API host IP
|
||||||
while [ "$API_HOST" = "" ]
|
while [ "$API_HOST" = "" ]
|
||||||
do
|
do
|
||||||
echo ""
|
echo ""
|
||||||
echo -n "Enter the API host IP or domain:"
|
echo -n "Enter the API host IP:"
|
||||||
read API_HOST
|
read API_HOST
|
||||||
done
|
done
|
||||||
# Get an optional custom API port
|
# Get an optional custom API port
|
||||||
echo -n "Enter the API port (optional):"
|
echo -n "Enter the API port (optional):"
|
||||||
read API_PORT
|
read API_PORT
|
||||||
# Get an optional custom Static URL
|
# Get an optional custom Static URL
|
||||||
if [ $STATIC_URL = "" ]; then
|
if [ "$STATIC_URL" = "" ]; then
|
||||||
echo -n "Enter a custom Static Files URI (optional):"
|
echo -n "Enter a custom Static Files URI (optional):"
|
||||||
read STATIC_URL
|
read STATIC_URL
|
||||||
STATIC_URL="/$STATIC_URL/"
|
STATIC_URL="/$STATIC_URL/"
|
||||||
|
@ -306,7 +306,7 @@ else
|
||||||
STATIC_URL="/$STATIC_URL/"
|
STATIC_URL="/$STATIC_URL/"
|
||||||
fi
|
fi
|
||||||
# Get an optional custom media URL
|
# Get an optional custom media URL
|
||||||
if [ $MEDIA_URL = "" ]; then
|
if [ "$MEDIA_URL" = "" ]; then
|
||||||
echo -n "Enter a custom Media Files URI (optional):"
|
echo -n "Enter a custom Media Files URI (optional):"
|
||||||
read MEDIA_URL
|
read MEDIA_URL
|
||||||
MEDIA_URL="/$MEDIA_URL/"
|
MEDIA_URL="/$MEDIA_URL/"
|
||||||
|
|
Loading…
Reference in a new issue