uts customizations
This commit is contained in:
parent
8169f24072
commit
3e563fb2ae
2 changed files with 23 additions and 1 deletions
|
@ -1 +1 @@
|
||||||
metamaps
|
metamaps_uts
|
||||||
|
|
22
bin/uts.metamaps.cc-map-follow-notifications.sh
Executable file
22
bin/uts.metamaps.cc-map-follow-notifications.sh
Executable file
|
@ -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 ""
|
Loading…
Add table
Reference in a new issue