|
@@ -7,7 +7,6 @@ source env/db.env
|
|
|
source env/magento.env
|
|
|
|
|
|
BASE_URL=${1:-magento2.test}
|
|
|
-
|
|
|
ES_HOST=elasticsearch
|
|
|
ES_PORT=9200
|
|
|
|
|
@@ -17,17 +16,8 @@ docker-compose -f docker-compose.yml up -d
|
|
|
[ $? != 0 ] && echo "Failed to start Docker services" && exit
|
|
|
sleep 5 #Ensure containers are started...
|
|
|
|
|
|
-echo "Copying all files from host to container..."
|
|
|
-rm -rf src/vendor #Clear for step below
|
|
|
-bin/copytocontainer --all
|
|
|
-
|
|
|
bin/clinotty chmod u+x bin/magento
|
|
|
-
|
|
|
-bin/setup-composer-auth
|
|
|
-
|
|
|
-echo "Forcing reinstall of composer deps to ensure perms & reqs..."
|
|
|
-bin/clinotty composer global require hirak/prestissimo
|
|
|
-bin/clinotty composer update
|
|
|
+mv .vscode src/
|
|
|
|
|
|
echo "Waiting for connection to Elasticsearch..."
|
|
|
bin/clinotty timeout 30 bash -c "
|
|
@@ -73,11 +63,12 @@ bin/clinotty bin/magento setup:install \
|
|
|
--elasticsearch-port=$ES_PORT \
|
|
|
--use-rewrites=1
|
|
|
|
|
|
+echo "Copying files from container to host after install..."
|
|
|
+bin/copyfromcontainer --all
|
|
|
+
|
|
|
echo "Turning on developer mode.."
|
|
|
bin/clinotty bin/magento deploy:mode:set developer
|
|
|
|
|
|
-bin/clinotty bin/magento indexer:reindex
|
|
|
-
|
|
|
echo "Forcing deploy of static content to speed up initial requests..."
|
|
|
bin/clinotty bin/magento setup:static-content:deploy -f
|
|
|
|
|
@@ -87,10 +78,6 @@ bin/clinotty bin/magento indexer:reindex
|
|
|
echo "Clearing the cache to apply updates..."
|
|
|
bin/clinotty bin/magento cache:flush
|
|
|
|
|
|
-echo "Copying files from container to host after install..."
|
|
|
-bin/copyfromcontainer app
|
|
|
-bin/copyfromcontainer vendor
|
|
|
-
|
|
|
echo "Generating SSL certificate..."
|
|
|
bin/setup-ssl "$BASE_URL"
|
|
|
|