kateray / awesometax

The Awesometax crowdfunding platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

awesometax

The Awesometax crowdfunding platform.

Configuration

Edit config/database.yml as needed for the MySQL config.

We're set up for Apache + Passenger with RVM and Ruby 1.9.3. I have a .rvmrc that specifies the gemset "rails30."

Monthly collection

We have rake tasks that run through all current taxes, do the PayPal transactions, and send email notifications to the affected users.

bundle exec rake taxes:collect --trace    

To automate this, I have a script called collect_taxes.sh. It emails the output of the rake script to me. Of course the particulars here will vary depending on your server setup:

#!/bin/bash
RAILS_ENV=production
PATH=$PATH:$HOME/.rvm/bin
cd /var/www/awesometax_prod
rvm 1.9.3@rails30 do rake taxes:collect | mail -s "[AwesomeTax] Monthly collection" your@emailaddress.com

I set up a cron job to do this at noon on the 8th of every month. Run "crontab -e" and add this line:

0 12 8 * *   /home/youruser/collect_taxes.sh

About

The Awesometax crowdfunding platform


Languages

Language:Ruby 39.9%Language:CSS 34.1%Language:JavaScript 25.9%Language:Shell 0.1%