flaskr.py 347 B

1234567891011121314151617181920
  1. """
  2. Website for Craftbroec RR stuff
  3. """
  4. from subprocess import call
  5. from flask import jsonify
  6. from app import app
  7. @app.route('/')
  8. def index():
  9. """Show index page"""
  10. return jsonify(True)
  11. @app.route('/deploy')
  12. def deploy():
  13. """Run deploy script"""
  14. call(["git", "pull"])
  15. call(["touch", "flask.wsgi"])
  16. return jsonify(True)