中文

https://www.jianshu.com/p/7bc34e56fa39

http://www.bjhee.com/flask-heroku.html

 

官方

Getting Started on Heroku with Python

GUI

https://dashboard.heroku.com/apps/

==================================================

用CLI部署一个app

Heroku 教程

python的版本

  • you can also supply a runtime.txt file:
  • python-2.7.15

 

dependencies

  • requirement.txt

 

部署

  • $ heroku run python filename.py deploy

 

维护

#告诉Heroku,你要进行升级操作,此操作后web为offline
heroku maintenance:on
 
#提交部署
git push heroku master
 
#重新运行服务器
heroku run python manage.py deploy
heroku restart
 
#告诉Heroku,升级完成
heroku maintenance:off

  

 

相关文章:

  • 2022-12-23
  • 2021-11-11
  • 2022-01-02
  • 2021-09-07
  • 2021-10-19
  • 2021-11-17
  • 2021-09-30
  • 2022-01-01
猜你喜欢
  • 2022-12-23
  • 2022-03-01
  • 2021-06-18
  • 2022-12-23
  • 2021-08-12
相关资源
相似解决方案