Automate updating the local SQLite database to push to GitHub.
- django
- celery (sqlite database update)
- git push to github
auto_db_update.sh
Errors encountered
1. Command not found
Although the script was running as the same current user (whoami
), some commands were not executing properly as it didn't find the path.
2. GitHub access error
Error message from the mail
Fix: use ssh instead of https to access
Above command will change the [remote "origin"] url
in the config like so
Note: ssh to be set locally and on github for above to work