I have my main app.py with this code
#pages & receive webhook
#home page html
@app.route('/')
def welcome():
return render_template('index.html')
#webhook
@app.route('/webhook', methods=['POST'])
def webhook():
# print(request.data)
data = json.loads(request.data)
when I run this the index.html renders so I know that part works
I am sending json code in a webhook from trading view to /webhook
I am running the main page as a always on task in the tasks tab with this command
python /home/usern/mysite/app.py
this is the correct directory
The webhook is triggered in tradingview but my app.py does not trigger and the alway on task is permanently in 'starting' mode
How can I get the task to receive the webhook and trigger my app?