Skip to content

Commit d55ef70

Browse files
authored
Merge pull request #62 from TheDMSGroup/dev
2.15.0-beta
2 parents e070647 + d210c7b commit d55ef70

27 files changed

+6608
-4899
lines changed

.ebextensions/50_php.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ option_settings:
1212
packages:
1313
yum:
1414
php71-imap: []
15+
php71-pecl-redis: []
1516

1617
files:
1718
"/etc/php.d/z_project.ini":
@@ -74,3 +75,6 @@ container_commands:
7475
# A restart of apache is not typically necessary.
7576
# 52_restart_httpd:
7677
# command: sudo service httpd restart
78+
53_redis_configure:
79+
command: bash scripts/redis-start.sh
80+
ignoreErrors: true

.ebextensions/60_io.config

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ container_commands:
7373
ln -sf /efs/mautic/app/config/local.php mautic/app/config/local.php
7474
rm -rf /tmp/imports
7575
ln -sf /efs/mautic/imports /tmp
76-
rm -rf mautic/app/cache/prod/data/shared_dashboard
77-
ln -sf /efs/mautic/app/cache/data/shared_dashboard mautic/app/cache/prod/data
7876
# Override all EFS permissions as a precaution. At large scale this step may need to be removed.
7977
66_io_efs_permissions:
8078
leader_only: true

.ebextensions/70_mautic.config

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
# General commands for Mautic setup.
22
container_commands:
3-
# Intentionally avoid warmup as it causes a number of issues.
3+
# Intentionally clear cache to ensure there are no obvious code issues, then recreate required cache folders.
44
70_mautic_cache_clear:
5-
command: rm -rf ./mautic/app/cache/ ; console cache:clear --no-interaction --no-warmup -vvv
6-
ignoreErrors: true
5+
command: |
6+
rm -rf mautic/app/cache/
7+
console cache:clear --no-interaction --no-warmup -vvv
8+
mkdir -p mautic/app/cache/prod/data
9+
chown -R webapp:webapp mautic/app/cache
10+
chmod -R ug+wx mautic/app/cache
11+
# Link the shared dashboard EFS mount after a cache clear.
12+
71_mautic_efs_shared_dashboard:
13+
command: ln -sf /efs/mautic/app/cache/data/shared_dashboard mautic/app/cache/prod/data
714
# Installation will only take place if the environment variable MAUTIC_INSTALL is 1.
815
71_mautic_install:
916
command: bash scripts/mautic-install.sh

.ebextensions/80_cron_start.config

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ files:
2525
# SEGMENTS
2626
# To keep the segments current.
2727
# Run up to 3 batches of 300 contacts per segment, then move on to the next.
28-
*/10 * * * * root cronloop mautic:segments:update --max-contacts=5000 --batch-limit=1000 --quiet >/dev/null 2>&1
28+
*/10 * * * * root cronloop mautic:segments:update --max-contacts=10000 --batch-limit=10000 --quiet >/dev/null 2>&1
2929

3030
# CAMPAIGNS
3131
# To keep campaigns updated with applicable contacts.
@@ -56,8 +56,7 @@ files:
5656

5757
# IMPORTS
5858
# To run imports in offline processing.
59-
# Import only 900 at a time for memory limit reduction and loop when done for speed.
60-
*/10 * * * * root cronloop mautic:import --limit=300 --quiet >/dev/null 2>&1
59+
* * * * * root if [ ! -d /tmp/imports ]; then sudo ln -sf /efs/mautic/imports /tmp ; fi ; console mautic:import --quiet >/dev/null 2>&1
6160

6261
# IP Lookup
6362
# Update maxmind databse at 9am on first Tuesday of each month on all instances.

.ebextensions/90_cron_custom.config

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,8 @@ files:
3838

3939
# DASHBOARD WARM
4040
# Caches dashboard widgets so that the login is faster for the most active users.
41-
*/30 * * * * root cron mautic:dashboard:warm >/dev/null 2>&1
41+
*/5 * * * * root cron mautic:dashboard:warm >/dev/null 2>&1
42+
43+
# SEGEMNT UPDATER
44+
# Updates high volume segments at regular intervals
45+
*/10 * * * * root /bin/bash /var/app/current/scripts/mautic-segment-worker.sh >/dev/null 2>&1

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ while maintaining HIPAA & PCI compliance. Other helpful services such as CloudFl
3333

3434
#### Optional:
3535

36+
REDIS_HOST - Set to the path of your Redis server/cluster to use Redis for session storage. Helps avoid CSRF errors when scaling. See https://github.com/phpredis/phpredis
3637
MAUTIC_INSTALL - Set to "1" to initialize mautic for the first/cold deployment only!
3738
MAUTIC_WORKERS - Number of concurrent campaign trigger workers to run on the leading instance.
3839
- Instead of MAUTIC_WORKERS, we reccomend using the following 3 variables now to better control your timing.

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "Mautic Open Source Distribution - Modified for scalability",
55
"license": "GPL-3.0-only",
66
"require": {
7-
"mautic/core": "dev-master#d27414a2044fed72ecbb39d88ed6a8d80b4fe9eb"
7+
"mautic/core": "dev-master#f6aa213482047108968ed9766a2eda7c8e94d615",
8+
"aws/aws-sdk-php": "3.36"
89
},
910
"repositories": [
1011
{

0 commit comments

Comments
 (0)