Преглед изворни кода

Give user URL of Magento instance after setup

Mark Shust пре 6 година
родитељ
комит
981f6a4b86
1 измењених фајлова са 3 додато и 2 уклоњено
  1. 3 2
      compose/magento-2/bin/setup

+ 3 - 2
compose/magento-2/bin/setup

@@ -1,4 +1,6 @@
 #!/bin/bash
+BASE_URL=${1:-magento2.test}
+
 bin/stop
 
 docker-compose -f docker-compose.yml up -d
@@ -10,8 +12,6 @@ bin/copytocontainer --all
 
 bin/clinotty chmod u+x bin/magento
 
-BASE_URL=${1:-magento2.test}
-
 echo "Forcing reinstall of composer deps to ensure perms & reqs..."
 bin/clinotty composer install
 
@@ -50,3 +50,4 @@ echo "Restarting containers with host bind mounts for dev..."
 bin/restart
 
 echo "Docker development environment setup complete."
+echo "You may now access your Magento instance at https://${BASE_URL}/"