Skip to content

Commit 1890e8f

Browse files
authored
Merge pull request #63 from TheDMSGroup/dev
Update 2.15.0-beta to latest sha
2 parents d55ef70 + 7947b81 commit 1890e8f

File tree

9 files changed

+147
-158
lines changed

9 files changed

+147
-158
lines changed

.ebextensions/50_php.config

Lines changed: 36 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ option_settings:
99
display_errors: "Off"
1010
max_execution_time: 60
1111

12-
packages:
13-
yum:
14-
php71-imap: []
15-
php71-pecl-redis: []
16-
1712
files:
1813
"/etc/php.d/z_project.ini":
1914
mode: "000644"
@@ -30,6 +25,7 @@ files:
3025
[opcache]
3126
opcache.enable = On
3227
opcache.enable_cli = On
28+
opcache.file_cache = "/tmp/opcache"
3329
opcache.validate_timestamps = On
3430
opcache.revalidate_freq = 300
3531
opcache.memory_consumption = 256
@@ -55,26 +51,50 @@ files:
5551
extension=mailparse.so
5652

5753
container_commands:
58-
50_install_imap:
59-
test: '[ ! -f /usr/lib64/php/7.1/modules/imap.so ] && echo "imap is not installed"'
60-
command: sudo yum install php71-imap -y
61-
51_install_mailparse:
62-
test: '[ ! -f /usr/lib64/php/7.1/modules/mailparse.so ] && echo "mailparse is not installed"'
54+
55+
# PHP 7.1 Requirements...
56+
50_php71_install_yum_packages:
57+
test: '[ $(php --version | head -n 1 | cut -d " " -f 2 | cut -c 1,3) -eq "71" ]'
58+
command: |
59+
sudo yum install php71-imap -y
60+
sudo yum install php71-pecl-redis -y
61+
51_php71_install_mailparse:
62+
test: '[ $(php --version | head -n 1 | cut -d " " -f 2 | cut -c 1,3) -eq "71" && ! -f /usr/lib64/php/7.1/modules/mailparse.so ]'
6363
command: |
6464
sudo pecl7 install --force mailparse
6565
sudo -u root bash -c "sed '/extension=\"mailparse.so\"/d' /etc/php.ini > /etc/php.ini"
6666
# Mautic currently uses an older version of Doctrine which lacks APCu compatibility.
6767
# Installing APC Backward Compatibility allows the old APC functions to use APCu instead without modifying Mautic.
68-
52_install_apcu_bc:
69-
test: '[ ! -f /usr/lib64/php/7.1/modules/apc.so ] && echo "APC backward compatibility is not installed"'
68+
52_php71_install_apcu_bc:
69+
test: '[ $(php --version | head -n 1 | cut -d " " -f 2 | cut -c 1,3) -eq "71" && ! -f /usr/lib64/php/7.1/modules/apc.so ]'
7070
command: |
7171
no | sudo pecl7 install --force apcu_bc-beta
7272
sudo rm -rf /etc/php-7.1.d/40-apcu.ini
7373
sudo -u root bash -c "sed '/extension=\"apc.so\"/d' /etc/php.ini > /etc/php.ini"
7474
sudo -u root bash -c "sed '/extension=\"apcu.so\"/d' /etc/php.ini > /etc/php.ini"
75-
# A restart of apache is not typically necessary.
76-
# 52_restart_httpd:
77-
# command: sudo service httpd restart
78-
53_redis_configure:
75+
76+
# PHP 7.2 Requirements...
77+
52_php72_install_yum_packages:
78+
test: '[ $(php --version | head -n 1 | cut -d " " -f 2 | cut -c 1,3) -eq "72" ]'
79+
command: |
80+
sudo yum install php72-imap -y
81+
sudo yum install php72-pecl-redis -y
82+
53_php72_install_mailparse:
83+
test: '[ $(php --version | head -n 1 | cut -d " " -f 2 | cut -c 1,3) -eq "72" && ! -f /usr/lib64/php/7.2/modules/mailparse.so ]'
84+
command: |
85+
sudo pecl7 install --force mailparse
86+
sudo -u root bash -c "sed '/extension=\"mailparse.so\"/d' /etc/php.ini > /etc/php.ini"
87+
# Mautic currently uses an older version of Doctrine which lacks APCu compatibility.
88+
# Installing APC Backward Compatibility allows the old APC functions to use APCu instead without modifying Mautic.
89+
54_php72_install_apcu_bc:
90+
test: '[ $(php --version | head -n 1 | cut -d " " -f 2 | cut -c 1,3) -eq "72" && ! -f /usr/lib64/php/7.2/modules/apc.so ]'
91+
command: |
92+
no | sudo pecl7 install --force apcu_bc-beta
93+
sudo rm -rf /etc/php-7.2.d/40-apcu.ini
94+
sudo -u root bash -c "sed '/extension=\"apc.so\"/d' /etc/php.ini > /etc/php.ini"
95+
sudo -u root bash -c "sed '/extension=\"apcu.so\"/d' /etc/php.ini > /etc/php.ini"
96+
97+
# Redis for all versions of PHP.
98+
55_redis_configure:
7999
command: bash scripts/redis-start.sh
80100
ignoreErrors: true

.ebextensions/70_mautic.config

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,31 @@ container_commands:
1212
71_mautic_efs_shared_dashboard:
1313
command: ln -sf /efs/mautic/app/cache/data/shared_dashboard mautic/app/cache/prod/data
1414
# Installation will only take place if the environment variable MAUTIC_INSTALL is 1.
15-
71_mautic_install:
15+
72_mautic_install:
1616
command: bash scripts/mautic-install.sh
1717
leader_only: true
1818
# Run database migrations to ensure schema is up to date with the current major version.
19-
72_mautic_migrations:
19+
73_mautic_migrations:
2020
command: console doctrine:migrations:migrate --no-interaction --allow-no-migration -vvv
2121
ignoreErrors: true
2222
leader_only: true
2323
# Force schema updates for custom plugins that have no migrations.
24-
# 73_mautic_schema:
24+
# 74_mautic_schema:
2525
# command: console doctrine:schema:update --force -vvv
2626
# leader_only: true
2727
# Download IP Lookup databases, which are stored in each instance and not on the EFS mount.
28-
74_mautic_iplookup:
28+
75_mautic_iplookup:
2929
command: console mautic:iplookup:download -vvv
3030
# Promote new changes to core CSS and JS. This assumes LESS compilation has taken place at build-time.
31-
75_generate_assets:
32-
command: console mautic:assets:generate -vvv
31+
76_generate_assets:
32+
command: console mautic:assets:generate -vvv
33+
34+
files:
35+
"/opt/elasticbeanstalk/hooks/appdeploy/post/77_mautic_cache_warm.sh":
36+
mode: "000755"
37+
owner: root
38+
group: root
39+
encoding: plain
40+
content: |
41+
#!/usr/bin/env bash
42+
console cache:warm --no-interaction -vvv

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
- mysql
77

88
php:
9-
- 7.1
9+
- 7.2
1010

1111
git:
1212
depth: 200

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
"description": "Mautic Open Source Distribution - Modified for scalability",
55
"license": "GPL-3.0-only",
66
"require": {
7-
"mautic/core": "dev-master#f6aa213482047108968ed9766a2eda7c8e94d615",
8-
"aws/aws-sdk-php": "3.36"
7+
"mautic/core": "dev-master#23a0b3acb779b3e33b2e6ac65c629fd5c36caa0c",
8+
"aws/aws-sdk-php": "3.36",
9+
"twig/twig": "v1.35.0"
910
},
1011
"repositories": [
1112
{

0 commit comments

Comments
 (0)