|
@@ -54,6 +54,8 @@ bin/clinotty bin/magento setup:install \
|
|
--db-user=$MYSQL_USER \
|
|
--db-user=$MYSQL_USER \
|
|
--db-password=$MYSQL_PASSWORD \
|
|
--db-password=$MYSQL_PASSWORD \
|
|
--base-url=https://$BASE_URL/ \
|
|
--base-url=https://$BASE_URL/ \
|
|
|
|
+ --base-url-secure=https://$BASE_URL/ \
|
|
|
|
+ --backend-frontname=admin \
|
|
--admin-firstname=John \
|
|
--admin-firstname=John \
|
|
--admin-lastname=Smith \
|
|
--admin-lastname=Smith \
|
|
--admin-email=john.smith@gmail.com \
|
|
--admin-email=john.smith@gmail.com \
|
|
@@ -67,6 +69,16 @@ bin/clinotty bin/magento setup:install \
|
|
--amqp-user=guest \
|
|
--amqp-user=guest \
|
|
--amqp-password=guest \
|
|
--amqp-password=guest \
|
|
--amqp-virtualhost=/ \
|
|
--amqp-virtualhost=/ \
|
|
|
|
+ --cache-backend=redis \
|
|
|
|
+ --cache-backend-redis-server=redis \
|
|
|
|
+ --cache-backend-redis-db=0 \
|
|
|
|
+ --page-cache=redis \
|
|
|
|
+ --page-cache-redis-server=redis \
|
|
|
|
+ --page-cache-redis-db=1 \
|
|
|
|
+ --session-save=redis \
|
|
|
|
+ --session-save-redis-host=redis \
|
|
|
|
+ --session-save-redis-log-level=4 \
|
|
|
|
+ --session-save-redis-db=2 \
|
|
--search-engine=elasticsearch7 \
|
|
--search-engine=elasticsearch7 \
|
|
--elasticsearch-host=elasticsearch \
|
|
--elasticsearch-host=elasticsearch \
|
|
--use-rewrites=1
|
|
--use-rewrites=1
|
|
@@ -79,15 +91,6 @@ bin/clinotty bin/magento indexer:reindex
|
|
echo "Forcing deploy of static content to speed up initial requests..."
|
|
echo "Forcing deploy of static content to speed up initial requests..."
|
|
bin/clinotty bin/magento setup:static-content:deploy -f
|
|
bin/clinotty bin/magento setup:static-content:deploy -f
|
|
|
|
|
|
-echo "Enabling Redis for cache..."
|
|
|
|
-bin/clinotty bin/magento setup:config:set --no-interaction --cache-backend=redis --cache-backend-redis-server=redis --cache-backend-redis-db=0
|
|
|
|
-
|
|
|
|
-echo "Enabling Redis for Full Page Cache..."
|
|
|
|
-bin/clinotty bin/magento setup:config:set --no-interaction --page-cache=redis --page-cache-redis-server=redis --page-cache-redis-db=1
|
|
|
|
-
|
|
|
|
-echo "Enabling Redis for session..."
|
|
|
|
-bin/clinotty bin/magento setup:config:set --no-interaction --session-save=redis --session-save-redis-host=redis --session-save-redis-log-level=4 --session-save-redis-db=2
|
|
|
|
-
|
|
|
|
echo "Re-indexing with Elasticsearch..."
|
|
echo "Re-indexing with Elasticsearch..."
|
|
bin/clinotty bin/magento indexer:reindex
|
|
bin/clinotty bin/magento indexer:reindex
|
|
|
|
|