烧瓶+自举快
步骤1:制造东西
mkdir your_project
cd your_project
python3 -m venv venv
source venv/bin/activate
pip3 install flask
git init
heroku login
pip3 install gunicorn
pip3 freeze > requirements.txt
touch Procfile
步骤2:将其添加到Procfile
web: gunicorn app:server
步骤3a:添加base.html(带有引导标头以检查其是否有效)
<!DOCTYPE html >
< html lang =" en " >
< head >
< meta charset =" UTF-8 " >
< meta name =" viewport " conten
2022-05-20 08:36:00
6.83MB
Python
1