From 3e563fb2ae13cba1551987151c62a5a849dd891b Mon Sep 17 00:00:00 2001 From: Metamaps on Linode Date: Sat, 14 Oct 2017 14:24:23 -0400 Subject: [PATCH] uts customizations --- .ruby-gemset | 2 +- ...ts.metamaps.cc-map-follow-notifications.sh | 22 +++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100755 bin/uts.metamaps.cc-map-follow-notifications.sh diff --git a/.ruby-gemset b/.ruby-gemset index ea3bcc43..a8f7e318 100644 --- a/.ruby-gemset +++ b/.ruby-gemset @@ -1 +1 @@ -metamaps +metamaps_uts diff --git a/bin/uts.metamaps.cc-map-follow-notifications.sh b/bin/uts.metamaps.cc-map-follow-notifications.sh new file mode 100755 index 00000000..fc59ba56 --- /dev/null +++ b/bin/uts.metamaps.cc-map-follow-notifications.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +cd /home/metamaps/uts.metamaps.cc/ + +date + +# Load RVM into a shell session *as a function* +if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then + source "$HOME/.rvm/scripts/rvm" +elif [[ -s "/usr/local/rvm/scripts/rvm" ]] ; then + source "/usr/local/rvm/scripts/rvm" +else + printf "ERROR: An RVM installation was not found.\n" + exit 1 +fi +VERSION="$(cat .ruby-version)" +GEMSET="$(cat .ruby-gemset)" +rvm use ${VERSION}@${GEMSET} + +source .env +bundle exec rake metamaps:deliver_map_activity_emails +echo ""