Skip to content

Instantly share code, notes, and snippets.

View mabumusa1's full-sized avatar

Mohammad Abu Musa mabumusa1

View GitHub Profile
@mabumusa1
mabumusa1 / config_prod.php
Created November 25, 2020 10:56 — forked from heathdutton/config_prod.php
An example of how to use Master/Slave support with mautic. In this case supporting an optional read-only replica cluster with AuroraDB.
<?php
$loader->import('config.php');
if (file_exists(__DIR__.'/security_local.php')) {
$loader->import('security_local.php');
} else {
$loader->import('security.php');
}
@mabumusa1
mabumusa1 / deploy.sh
Created April 11, 2022 22:16 — forked from cagartner/deploy.sh
Laravel Push deploy Github actions example
#!/bin/sh
set -e
vendor/bin/phpunit
(git push) || true
git checkout production
git merge master