12345678910111213141516171819202122 |
- """
- Website for Craftbroec RR stuff
- """
- from subprocess import call
- from flask import jsonify
- from app import app, webhook
- @app.route('/')
- def index():
- """Show index page"""
- return jsonify(True)
- @webhook.hook()
- @app.route('/deploy/<int:data>')
- def deploy(data):
- """Run deploy script"""
- return jsonify(True)
- call(["git", "pull"])
- call(["touch", "flask.wsgi"])
- return jsonify(True)
|