Created
March 22, 2013 03:40
-
-
Save dangalipo/5218785 to your computer and use it in GitHub Desktop.
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 | |
# This script is meant to be run daily and will process all of the subscriptions | |
# and payments | |
RAILSENV=$1 | |
if [RAILSENV eq 'staging'] | |
then | |
cd /var/vhosts/take5feedback.tfgrails.com/current | |
else | |
cd /var/vhosts/take5feedback.com/current | |
fi | |
RAILS_ENV=RAILSENV /usr/local/rvm/bin/rvm tfg@take5-feedback exec bundle exec rake subscriptions:deactivate_expired_free_trial_subscriptions | |
RAILS_ENV=RAILSENV /usr/local/rvm/bin/rvm tfg@take5-feedback exec bundle exec rake subscriptions:deactivate_expired_free_trials | |
RAILS_ENV=RAILSENV /usr/local/rvm/bin/rvm tfg@take5-feedback exec bundle exec rake subscriptions:process_subscription_payments |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment