https://github.com/inst-support-eng/panda-pto.git
cd panda-pto
brew install postgresql
bundle install
bundle exec rake db:create
bundle exec rake db:migrate
to run locally rails s
All scheduled and recurring actions are currently written as rake tasks, and are executed using the Heroku Scheduler plugin.
rake coverage_mailer
as a daily job in scheduler rake quarterly_seed
as a daily job in schedulerrake new_hire_check_pip
as a daily job in schedulerrake sync_humanity_users
to scheduler.
rake sync_agents
as a daily job in scheduler
This application utilizes the Google Sheets API for automated data syncs. A Google API project is needed to access these APIs. Once you have this, you can follow this guide to set up Service-to-Service authentication on the Google side.
Once you've aquired a credentials.json file from above, you'll need to configure it in the enviroment.
/config
directoryGOOGLE_APPLICATION_CREDENTIALS
pointing to the .json file from step one. ex) GOOGLE_APPLICATION_CREDENTIALS=config/google_credentials.json
heroku config:set GOOGLE_APPLICATION_CREDENTIALS="$(< /local/path/to/google_credentials.json)"