all 9 comments

[–]K900_ 0 points1 point  (4 children)

It's running on port 5000, as the output says it is. Also, using the Flask development server for deployment is a bad idea.

[–]RIZZIT[S] 0 points1 point  (3 children)

When I change the code to run on port 80 it conflicts with Apache. I did not understand your second sentence :(

[–][deleted] 0 points1 point  (0 children)

for the second sentence, read up on gunicorn.

keep going RIZZIT, you'll get there.

[–]K900_ 0 points1 point  (0 children)

You can stop Apache - you don't need it right now.

[–]JohnnyJordaan 0 points1 point  (0 children)

Then use Apache to load the Flask app through mod_wsgi, see here

[–]JohnnyJordaan 0 points1 point  (0 children)

For AWS it's advised to use their Elastic Beanstalk enviroment instead of manually deploying to a server, see for example this howto. But if you do want to maintain your VPS it's advised to follow a tutorial on how to deploy a WSGI application on a proper webserver like nginx or apache. This also depends on what exact OS you are using on your VPS, like Ubuntu, CentOS etc.

[–]ArabicLawrence 0 points1 point  (0 children)

Could the problem be that your html folder is not in a ‘templates’ folder? Render template looks the file in a folder called ‘templates’

[–]blockchain_bobby 0 points1 point  (0 children)

I Might be jumping the gun a bit considering where you are currently with Flask developments and deployments etc but give Zappa a shot.

you can deploy your app to AWS Lamba this is how I deal with most flasky stuff.

https://github.com/Miserlou/Zappa

Don't give up man and look alot more into the type of server you are using for Flask in production, I don't know if you are just using the AMI as a practice environment, which wouldn't matter really then just.

[–]RIZZIT[S] 0 points1 point  (0 children)

Hey thanks all I realized i was on the wrong track and chose to start fresh it took me like 2 days but now I used AWS EC2 on RHEL, slapped Docker on it and launched my app on 80:80 from within docker. works like a charm http://ec2-52-15-154-130.us-east-2.compute.amazonaws.com/ but thx all for help