^
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
|
||||
done
|
||||
# Get the API host IP or domain
|
||||
if [ "SAME_HOST" = "no" ]; then
|
||||
if [ "$SAME_HOST" = "no" ]; then
|
||||
while [ "$APP_HOST" = "" ]
|
||||
do
|
||||
echo ""
|
||||
|
@ -43,7 +43,7 @@ done
|
|||
# Build the API URL
|
||||
API_URL="http://$API_HOST:$API_PORT/$APIURI/"
|
||||
# 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|
|
||||
s|{app_mount_uri}|$APP_MOUNT_URI|
|
||||
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 ""
|
||||
# Get the Dashboard & GraphQL host domain
|
||||
# Get the API host domain
|
||||
while [ "$HOST" = "" ]
|
||||
do
|
||||
echo -n "Enter the Dashboard & GraphQL host domain:"
|
||||
echo -n "Enter the API host domain:"
|
||||
read HOST
|
||||
done
|
||||
# Get the API host IP or domain
|
||||
# Get the API host IP
|
||||
while [ "$API_HOST" = "" ]
|
||||
do
|
||||
echo ""
|
||||
echo -n "Enter the API host IP or domain:"
|
||||
echo -n "Enter the API host IP:"
|
||||
read API_HOST
|
||||
done
|
||||
# Get an optional custom API port
|
||||
echo -n "Enter the API port (optional):"
|
||||
read API_PORT
|
||||
# Get an optional custom Static URL
|
||||
if [ $STATIC_URL = "" ]; then
|
||||
if [ "$STATIC_URL" = "" ]; then
|
||||
echo -n "Enter a custom Static Files URI (optional):"
|
||||
read STATIC_URL
|
||||
STATIC_URL="/$STATIC_URL/"
|
||||
|
@ -306,7 +306,7 @@ else
|
|||
STATIC_URL="/$STATIC_URL/"
|
||||
fi
|
||||
# Get an optional custom media URL
|
||||
if [ $MEDIA_URL = "" ]; then
|
||||
if [ "$MEDIA_URL" = "" ]; then
|
||||
echo -n "Enter a custom Media Files URI (optional):"
|
||||
read MEDIA_URL
|
||||
MEDIA_URL="/$MEDIA_URL/"
|
||||
|
|
Loading…
Reference in a new issue