Complete guide to creating and hosting Flask applications on Square Cloud with professional configuration and production deployment.
app.py
) and add the following code to implement a basic Flask application:
requirements.txt
file is an essential component that lists all external libraries required for your project. Make sure to include all used dependencies, excluding Python’s built-in modules such as random
and datetime
. This file must be included when submitting your application to Square Cloud.
squarecloud.app
file is an essential configuration file used to set up your application on Square Cloud. It defines the name, description, version, main file, and other fundamental settings.meusite.com
) ao invés da URL padrão https://meusite.squareweb.app/
, você precisa do plano Standard ou superior. O subdomínio é definido pelo campo SUBDOMAIN no arquivo de configuração. Veja: Como configurar seu domínio personalizado..env
.