Last active
June 29, 2021 20:00
-
-
Save prhomhyse/44fe61aae406949edd43d0201c1d9163 to your computer and use it in GitHub Desktop.
Start Local Redis on EasyEngine when it disappears
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ## Check for the exact site's Redis container | |
| is_redis_running=`grep -w sitenamecom_redis_1`; | |
| if [[! $is_redis_running ]]; then | |
| ee site refresh sitename.com; | |
| fi | |
| ## For the lazy folks like myself, you can set a cron to check and handle this at whatever timeframe you want. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment