Open opencoca opened 1 year ago
I've added a pr request for this problem. #14
Hi @shhossain, thanks for the PR I'll look into it ASAP.
Just wanted to check in, I currently can't get either version running on my apple silicon. cloudflared in general isn't working - will fix that and look into the PR again. Looks good in the first place.
@UWUplus oka
Hi @shhossain, just checked this again, cloudflared wasn't exiting when I tried your pr, that's why I couldn't get main running. Does running the example for a second time after a SIGINT work for you?
Hi @shhossain, just checked this again, cloudflared wasn't exiting when I tried your pr, that's why I couldn't get main running. Does running the example for a second time after a SIGINT work for you?
what do you mean by "SIGINT" ?
Hi @shhossain, just checked this again, cloudflared wasn't exiting when I tried your pr, that's why I couldn't get main running. Does running the example for a second time after a SIGINT work for you?
what do you mean by "SIGINT" ?
CTRL + C
@UWUplus let me check
Hi @shhossain, just checked this again, cloudflared wasn't exiting when I tried your pr, that's why I couldn't get main running. Does running the example for a second time after a SIGINT work for you?
what do you mean by "SIGINT" ?
CTRL + C
@UWUplus no problem exiting the program.
Hi @shhossain, just checked this again, cloudflared wasn't exiting when I tried your pr, that's why I couldn't get main running. Does running the example for a second time after a SIGINT work for you?
what do you mean by "SIGINT" ?
CTRL + C
@UWUplus no problem exiting the program.
Also working when restarting?
Hi @shhossain, just checked this again, cloudflared wasn't exiting when I tried your pr, that's why I couldn't get main running. Does running the example for a second time after a SIGINT work for you?
what do you mean by "SIGINT" ?
CTRL + C
@UWUplus no problem exiting the program.
Also working when restarting?
Yes.
I'm currently experiencing an issue when trying to set the port for my Flask application using the app.run(port=1337, metrics_port=1338) arguments as suggested in the example provided in the repository (https://github.com/UWUplus/flask-cloudflared/blob/main/examples/flask_cloudflared_example.py).
The metrics_port argument gets set properly, but the main application still insists on running on port 5000, ignoring the specified port argument.
Steps to reproduce:
Include the following in the main function:
Expected behaviour:
The Flask application should operate on port 1337, and the metrics server should function on port 1338.
Actual behaviour:
The metrics server runs on port 1338 as expected, but the main Flask application runs on port 5000, ignoring the specified port argument.