- setup heroku project
- setup GDrive auth via cloud console (watch out for slashes when setting up URIs)
- download client_secrets.json and put it in the local root folder (so PyDrive can use it)
- gitignore it
- use CommandLineAuth() instead of LocalWebserverAuth() locally
- put the relevant secrets in local json files to be used for auth locally
- test it locally and ensure it all works
- create secret env keys in heroku with the content of both received jsons
- be sure to gitignore both json files
- create a ".profile" that will create the two files from ENV secrets when the docker image is run on heroku
- something like
echo ${CLIENT_SECRETS} > client_secrets.json echo ${MY_CREDENTIALS} > my_credentials.json
- deploy to heroku
- retest
NOTE2SELF: to access the remote heroku server for the app you can heroku run bash
and go from there