#Rewards
Steps to deploy on heroku (assumes You already have an account with billing information filled):
-
Clone repo (
git clone https://github.com/prograils/rewards.git
) -
Change directory to your new app (
cd rewards
) -
Run
bundle install
-
Create .env file with your own env variables
-
Add a heroku remote to the local git repository (
heroku create
) -
Set configuration variables -
heroku config:set $(sed '/^[A-Z0-9_]\+=/!d' .env)
-
Deploy an app (
git push heroku master
) -
Migrate schema (
heroku run rake db:migrate
) -
Populate database (
heroku run rake db:seed
) -
Add Heroku Scheduler (add-on for cron job) to app (
heroku addons:add scheduler:standard
) -
Open Heroku Scheduler (
heroku addons:open scheduler
) and put 'rake close_previous_month' as task name, check 'daily' is choosen as frequency