mabass Posted November 5, 2020 Author Posted November 5, 2020 (edited) True. Very odd. Could you do me a favor and do the same for public_html/audax-abc ? I mirrored the specific app in it's own folder. That way I can provide a stable version while still testing. Anyway, thanks for all your help. For now I've run out of ideas, maybe stackoverflow has an idea. Edit: One thing I have not tried is profiling the app using werkzeug. However, do that I need to wrap the wsgi app and I'm not sure how to do that with your infrastructure.A basic example to deploy the profiler is provided here (under section "Profiling for Perfomance") - however the example code uses now deprecated imports. Edited November 5, 2020 by mabass
Krydos Posted November 5, 2020 Posted November 5, 2020 So you want mabass.tk to load the flask app in public_html/audax-abc instead of public_html/flask-live?
mabass Posted November 6, 2020 Author Posted November 6, 2020 (edited) No sorry, I was unclear.I added a new subdomain audax-abc.mabass.heliohost.org, with /audax-abc/ as root.Basically the same app is now running twice, once via the sandbox (accessed by mabass.tk) and as standalone (audax-abc). I just wanted to use the standalone the same httpd conf method. Edited November 6, 2020 by mabass
mabass Posted November 6, 2020 Author Posted November 6, 2020 Thanks. Did you see my edit regarding profiling?
Krydos Posted November 6, 2020 Posted November 6, 2020 That looks like something you would need a VPS for. https://www.heliohost.org/vps/ Now is a great time to signup. We're offering an extra 1 GB of memory with any VPS sale, and we're also offering 10% off when you signup for 6 months. So combining both sales you can get 2 GB memory, 2 CPUs, and 50 GB hard drive for $3.60 per month. If you need any help setting up apache or mod_wsgi I'd be glad to help. You could also run flask as a constant process on a port, and then have apache proxy requests to that internal port which is much easier to set up than mod_wsgi. Those sales are only good until we reach the goal of our current fundraiser.
mabass Posted November 10, 2020 Author Posted November 10, 2020 Thanks I'll def. look into that. For now this topic can be closed I think.
Recommended Posts