Skip to content

Commit

Permalink
Mautic v5 Update - Always clear cache in Service Update Override (#1136)
Browse files Browse the repository at this point in the history
* Update Mautic to 5.1.0, add script to simply enable HTTPS inside mautic as it's very fussy and cuases many people problems in the docker install version.

* Always clear the cache folder on startup - many many problems people have with this, for the sake of a simple command and slower init, it always works when you do this.

* Always clear the cache folder on startup - many many problems people have with this, for the sake of a simple command and slower init, it always works when you do this.

---------

Co-authored-by: Adam Dudley <[email protected]>
  • Loading branch information
AdamDudley and Adam Dudley authored Jul 21, 2024
1 parent ddb4376 commit 3948476
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/v4/apps/mautic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ caproverOneClickApp:
b. In "Environmental Variables", ensure these variables are set correctly:
- APACHE_SERVER_NAME = $$cap_appname.$$cap_root_domain
c. Find the "Service Update Override" section.
d. Copy and paste this script:
d. Copy and paste this script (which sets apache server name, turns on https, and clears mautic cache every startup for smoother running):
```
TaskTemplate:
ContainerSpec:
Expand All @@ -96,6 +96,7 @@ caproverOneClickApp:
- |
echo "ServerName ${APACHE_SERVER_NAME}" >> /etc/apache2/apache2.conf
echo "SetEnvIf X-Forwarded-Proto https HTTPS=on" >> /etc/apache2/apache2.conf
rm -rf /var/www/html/var/cache/*
apache2-foreground
```
e. Click "Save & Update" at the bottom of the page.
Expand Down

0 comments on commit 3948476

Please sign in to comment.