mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-01-26 02:07:58 -05:00
44 lines
1.1 KiB
Bash
Executable File
44 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# tasks to run at deploy time, usually after 'rake db:migrate'
|
|
|
|
# When adding tasks, do so in chronological order, and note the date
|
|
# when it was added. This will help us know which ones have been run
|
|
# and can safely be commented out or removed.
|
|
|
|
# echo "2013-05-?? - Replacing empty post/notification subjects with '(no subject)'"
|
|
# rake growstuff:oneoff:empty_subjects
|
|
|
|
# echo "2013-06-03 - replace empty garden names with 'Garden'"
|
|
# rake growstuff:oneoff:empty_garden_names
|
|
|
|
# you MUST set up the paypal API environment variables before doing
|
|
# anything else, or things will fail all over the place. Stupid paypal :(
|
|
|
|
echo "2013-06-04 - set up Paypal API"
|
|
if [ ! $PAYPAL_USERNAME ]
|
|
then
|
|
echo "You must run:"
|
|
echo " heroku config:set PAYPAL_USERNAME=..."
|
|
exit
|
|
fi
|
|
|
|
if [ ! $PAYPAL_PASSWORD ]
|
|
then
|
|
echo "You must run:"
|
|
echo " heroku config:set PAYPAL_PASSWORD=..."
|
|
exit
|
|
fi
|
|
|
|
if [ ! $PAYPAL_SIGNATURE ]
|
|
then
|
|
echo "You must run:"
|
|
echo " heroku config:set PAYPAL_SIGNATURE=..."
|
|
exit
|
|
fi
|
|
|
|
echo "2013-06-04 - set up shop/products/etc"
|
|
rake growstuff:oneoff:setup_shop
|
|
|
|
|