Комментарии:
👋🏻 Hey! Do you like Python? Web app development? Automation?! Let me know what topics you'd like to see me cover next! 😃
ОтветитьThanks for the video--why would I do this rather than use gunicorn?
ОтветитьI moved my virtualenv into /usr/local/venvs, and chowned the files to be owned by www-data:www-data because I was getting an error about permissions. Now I'm getting an internal server error, and the server log says "no such file" for index.html - any thoughts?
ОтветитьHow to deploy multiple flask app on single server?
Ответитьbest
ОтветитьHi, using old version of linux mint, but for every step I take something goes wrong... why would this be happening? For instance I get pkg_resources cannot be imported, when I've written "pip install setuptools" 100 times
ОтветитьWow, why did you delete my comments?
What is my wrong?
I am very grateful to you for the video...
Hey luke. Thanks for the video.
How did you chnage your terminal color? The colors looks very pleasing! Are you using iterm and omz? What is the theme? 😅
This was awesome! I just built my very first flask app (actually my first web page) and wanted to try to deploy what I have next week for testing. Even without seeing the file structure of the server, I understood what you were explaining so I'm pretty confident. Thank you!
ОтветитьI got internal server error
ОтветитьIs it compulsory to make virtual env can we do same thing as root user?
ОтветитьHi, very good tutorial. Everything running fine.
I notice that if i change the home.html the content change only of i refresh apache.
can you provide a solution to that ?
I have already add
WSGIScriptReloading On
on virtual site but it didnt work.
Thanks
Thank you, this video helped fixing an error in my configuration!
ОтветитьWorked, thank you :)
Ответитьhow can we set os.environ variables?
Ответить"Cannot access directory '/var/www/html/logs/' for error log of vhost defined at /etc/apache2/sites-enabled/basic-flask-app.conf:1"
I got this king for error while configtest Bro can you give a solution ???
Hello, thank you for this video, you saved me because I couldn't upload a server with my python flaskafter watching your tutorial.
Ответить👍The Perfect Tutorial! 👍 I am already comfortable with Apache and virtual domains and just needed a quick run through for hosting Python apps. The only thing that would make it better would be having a guthub repo with your project files. Excellent video, thank you.
Ответитьthank you, i need to migrate a flask app running on windows, and look like i need some extra steps
ОтветитьI’m havin this error message: AssertionError: You must use exec(open(this_file).read(), {'__file__': this_file}))
You know what that can be?
Thank you. It is ridiculous what we need to do in order to solve such a simple task. Shame that in all those years of internet they never came to a better and simpler solution.
ОтветитьThank u so much for the video. :)
ОтветитьHey Luke, thanks for the great tutorial!
I've been able to deploy my website :))
I'm struggling with the error: app called on a post request cannot connect to X server. It runs perfectly on pycharm, but throws this error on the deployed version. I have changed the wsgi user,, exported the app to $PATH but no success. I read every related post on stackoverflow...
Would you give me a hint on that? Thanks
I almost wrote a comment "I love you for this incredible tutorial" but that would have been inappropriate...
Anyway, REALLY THANKS 🙏🏼 😀
hi, excelente video, but i have problems in deploy on debian 11 ... yu can help me ??? .. I do not receive any data in the request through post ...
ОтветитьI am not able to install pyvenv so I have used another way to install dependencies using pip install req.txt rather than using Pipfile.
ОтветитьLuke Peters, i want ask something, i we change the port in file basic-flask-app.conf (for example 4000) then we test in browser with ip:4000? is that correct?
ОтветитьFirst ever time I thumbs up'd a vid.. outstanding tutorial, very detailed!
Ответитьhi, nice tutorial very detailed, but i have a strange issue on the wsgi file, i can't understand what is wrong apparently the istrucions "with open(activate_this) as file_:
exec(file_.read(), dict(__file__=activate_this))" generate an error and i tried many solutions but non of them works
I just get a 404 no matter what. ugh
ОтветитьHey, have you ever achieved to deploy a flask app with flask-socketio to a server and run it?
ОтветитьHey, great video. Gonna be super helpful! I´ve been using pyenv to manage virtual envs, is it possible to make this work with pyenv or is pipenv the only way? If possible, could you explain how? Because there is no activate.this file, only a .python_version file that lies in my flask_app folder.
ОтветитьI am trying to run a Flask app on my raspberry with apache. Because this app sometimes needs GPIO-access, I can't run it without sudo. How can I tell apache to sudo run it? Or is there a better way?
I also run into some problems when accessing the machine with its hostname instead of the IP.
I then get the "Apache2 Debian Default Page" - unless I change line 4 in the .conf file.
With WSGIScriptAlias /{path} /var/www/basic-flask-app/app.wsgi the error doesn't occurs.
But then I have to call {hostname}.local/{path} instead of just {hostname}.local
Do you have any idea how to solve this? I am working with a Raspberry Pi Zero as I mentioned above
Thanks for the nice tutorial though!
I was able to install everything without any errors. I am facing some issue after starting the apache server and trying to access the server from chrome. Am getting two errors in the error log:
1] PermissionError: [Errno 13] Permission denied: '/root/.local/share/virtualenvs/OnlineLearner-uZdfk3kh/bin/activate_this.py'
2] Target WSGI script '/var/www/OnlineLearner/app.wsgi' cannot be loaded as Python module.
Please help me out Luke. Thanks in advance!!
Thank you so much, you helped me a lot with your video! :)
ОтветитьThe first useful tutorial at all for this usecase! Thy.
Ответить👍👍👍👍👌👌👌
ОтветитьHi Luke that was an outstanding Tutorial!
Ответитьyou are like a god to me
i appreciate your hardwork alot🤧🤧
stay posted like these videos💖💖
Thanks for the great tutorial! I know literally nothing about linux or apache and I still got it to work on my raspberry pi thanks to you
Ответитьthis makes me think machine learning is easier
Ответитьwhat about if you have sqlalchemy, the way you illustrated the example can be applied to do so? thanks
ОтветитьWhats the advantage to deploy a flask application with wsgi? Im new in flask…
Ответить