Skip to content

Instantly share code, notes, and snippets.

@prhomhyse
Last active June 29, 2021 20:00
Show Gist options
  • Save prhomhyse/44fe61aae406949edd43d0201c1d9163 to your computer and use it in GitHub Desktop.
Save prhomhyse/44fe61aae406949edd43d0201c1d9163 to your computer and use it in GitHub Desktop.
Start Local Redis on EasyEngine when it disappears
#!/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