M
M
mashkaJ2019-06-22 01:12:02
Amazon Web Services
mashkaJ, 2019-06-22 01:12:02

How to deploy Flask applications on the server?

Hello.
I'm still learning and trying to run my first Flask application on an Amazon instance. For now, I want to use the built-in web server. Everything works locally. I go through the terminal to the instance, run the script and go to localhost:5000 through curl.
And how to make this application accessible from the outside? (To check, I started Nginx and the start page is available).
I know that Flask recommends using Elastic Beanstalk, but is it possible to do without it? Because it is not clear whether this service is free
PS
Next, I wanted to run the same application in a docker container, or rather, I already launched it in a container and everything works locally, but how to make it available further is not clear.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Shumov, 2019-06-22
@mashkaJ

Good night) Beanstalk is just a platform that also runs an EC2 instance, so it makes no difference. If you want a container, then you are in AWS ECS
As for accessibility from the outside - EC2 must be on a public subnet, it must be given a public ip and port 80 for http must be open in the security group
The entire list of FreeTier limits

S
sim3x, 2019-06-22
@sim3x

https://www.digitalocean.com/community/tutorials/h...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question