Hi, i have made my website in flask and now i try to set this on a server on digitalocean.
I go through tutorial about it https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-uswgi-and-nginx-on-ubuntu-18-04
and I think (I’m pretty sure) i redirect my domain correctly to DO servers but still it doesn’t work. As i go through an IP on webbrowser i got deafault nginx site but when i go through my domain it deosn’t go. I have found such error:
2019/12/03 11:21:35 [crit] 6414#6414: *10 connect() to unix:/home/bartek/config/website.sock failed (2: No such file or directory) while connecting to upstream, client: 84.213.215.255, server: bartoszkobylinski.com, request: "GET / HTTP/1.1", upstream: "uwsgi://unix:/home/bartek/config/website.sock:", host: "bartoszkobylinski.com"
but actually for me it doesn’t say much. Any help would be great!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I can see that you’ve managed to get your website up and running which is great!
Would you mind sharing with the community what was the problem that you were facing and how did you fix it?
Thank you and regards, Bobby
My friend who helped me to settings thing right told me to make a config directory with config files. In my case .sock file was in the project directory instead in config directory so just copy paste fixed everything
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.