Automated Git add/commit/push - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html) +--- Thread: Automated Git add/commit/push (/thread-18325.html) |
Automated Git add/commit/push - rxndy - May-13-2019 Hey! I have a personal ERP I wrote for my small business in python/flask and I was wondering if it would be wise, (security-wise) to automatically push changes that my sqlite.db file have in my python code? something like so: @app.route("/create/inventory", methods=["POST"]) def create_inventory(): # Get form stuff and commit to db os.system("git add ./sqlite.db") os.system("git commit -m "change db {}".format(datetime.datetime()) os.system("git push") |