ICode9

精准搜索请尝试: 精确搜索
首页 > 编程语言> 文章详细

python – Django [Mezzanine CMS]项目没有部署到Heroku

2019-07-09 01:59:13  阅读:328  来源: 互联网

标签:python heroku django mezzanine procfile


Python新手,并尝试部署博客.我跟着Heorku关于Getting Started with Python on Heroku的文档.它提到我需要添加一个Procfile,所以我添加了

Procfile

web: gunicorn hello:app

是否提交,但在尝试将我的应用程序部署到heroku时遇到此错误

Juan-Gallardos-MacBook-Pro:yatumblrgraffiti juangallardo$git push heroku master
Counting objects: 23, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (18/18), done.
Writing objects: 100% (23/23), 15.50 KiB, done.
Total 23 (delta 2), reused 0 (delta 0)

-----> Python app detected
-----> No runtime.txt provided; assuming python-2.7.4.
-----> Preparing Python runtime (python-2.7.4)
-----> Installing Distribute (0.6.36)
-----> Installing Pip (1.3.1)
-----> Installing dependencies using Pip (1.3.1)
       Downloading/unpacking Django==1.5.1 (from -r requirements.txt (line 1))
         Running setup.py egg_info for package Django

       Downloading/unpacking Mezzanine==1.4.14 (from -r requirements.txt (line 2))
         Running setup.py egg_info for package Mezzanine

       Downloading/unpacking Pillow==2.1.0 (from -r requirements.txt (line 3))
         Running setup.py egg_info for package Pillow

           warning: no files found matching 'COPYING'
           warning: no files found matching '*.html' under directory 'docs'
           warning: no files found matching '*.css' under directory 'docs'
           warning: no files found matching 'README' under directory 'docs'
           warning: no files found matching 'CHANGES' under directory 'docs'
           warning: no files found matching 'CONTENTS' under directory 'docs'
       Downloading/unpacking PyRSS2Gen==1.0.0 (from -r requirements.txt (line 4))
         Downloading PyRSS2Gen-1.0.0.tar.gz
         Running setup.py egg_info for package PyRSS2Gen

       Downloading/unpacking Twisted==11.0.0 (from -r requirements.txt (line 5))
         Running setup.py egg_info for package Twisted

       Downloading/unpacking altgraph==0.7.2 (from -r requirements.txt (line 6))
         Downloading altgraph-0.7.2.tar.gz
         Running setup.py egg_info for package altgraph

           warning: no files found matching '*.txt'
       Downloading/unpacking bdist-mpkg==0.4.4 (from -r requirements.txt (line 7))
         Downloading bdist_mpkg-0.4.4.tar.gz
         Running setup.py egg_info for package bdist-mpkg

       Downloading/unpacking bleach==1.2.2 (from -r requirements.txt (line 8))
         Downloading bleach-1.2.2.tar.gz
         Running setup.py egg_info for package bleach

       Downloading/unpacking bonjour-py==0.3 (from -r requirements.txt (line 9))
         Could not find any downloads that satisfy the requirement bonjour-py==0.3 (from -r requirements.txt (line 9))
       No distributions at all found for bonjour-py==0.3 (from -r requirements.txt (line 9))
       Storing complete log in /app/.pip/pip.log

 !     Push rejected, failed to compile Python app

To git@heroku.com:yatumblrgraffiti.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:yatumblrgraffiti.git'

当我运行heroku日志时,我得到了这个

Juan-Gallardos-MacBook-Pro:yatumblrgraffiti juangallardo$heroku logs
2013-09-25T06:48:50+00:00 heroku[slug-compiler]: Slug compilation started
2013-09-25T06:49:16+00:00 heroku[slug-compiler]: Slug compilation failed: failed to compile Python app
2013-09-25T06:56:42.862309+00:00 heroku[router]: at=info code= desc="Blank app" method=GET path=/favicon.ico host=yatumblrgraffiti.herokuapp.com fwd="98.189.25.230" dyno= connect= service= status=502 bytes=
2013-09-25T06:56:42.221149+00:00 heroku[router]: at=info code= desc="Blank app" method=GET path=/ host=yatumblrgraffiti.herokuapp.com fwd="98.189.25.230" dyno= connect= service= status=502 bytes=
2013-09-25T06:56:42.775650+00:00 heroku[router]: at=info code= desc="Blank app" method=GET path=/favicon.ico host=yatumblrgraffiti.herokuapp.com fwd="98.189.25.230" dyno= connect= service= status=502 bytes=
2013-09-25T07:00:59+00:00 heroku[slug-compiler]: Slug compilation started
2013-09-25T07:01:51+00:00 heroku[slug-compiler]: Slug compilation failed: failed to compile Python app
2013-09-26T04:19:23+00:00 heroku[slug-compiler]: Slug compilation started
2013-09-26T04:19:48+00:00 heroku[slug-compiler]: Slug compilation failed: failed to compile Python app

不是How to deploy mezzanine on heroku?的副本,因为该问题具有不同的Procfile并且不包括他的错误日志.

我在这里可以缺少什么?

解决方法:

altgraph == 0.7.1包似乎存在问题,因此只需将您的requirements.txt更新为指向altgraph == 0.7.2或更高版本.

来源:发布历史https://pypi.python.org/pypi/altgraph/

标签:python,heroku,django,mezzanine,procfile
来源: https://codeday.me/bug/20190709/1408031.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有