I have project directory named Project, and project directory includes python files and html files et al., and want to deploy in the AWS ec2 ubuntu sever.when I run in the local is ok.
when run "flask run" under the Project directory, there is error in the ubuntu terminal.
flask run
* Serving Flask app 'project' (lazy loading)
* Environment: development
* Debug mode: on
Usage: flask run [OPTIONS]
Try 'flask run --help' for help.
Error: While importing 'project', an ImportError was raised
I have set a .flaskenv file as following:
FLASK_APP=project
FLASK_ENV=development