简体   繁体   English

Heroku 应用成功部署,但加载站点时收到应用程序错误

[英]Heroku app successfully deploying, but receiving application error when loading site

My logs don't indicate any errors as far as I can tell, but I'm receiving the following error when loading the site:据我所知,我的日志没有指出任何错误,但我在加载网站时收到以下错误:

An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command heroku logs --tail

Below you can find the logs.您可以在下面找到日志。 Am I missing something here?我在这里错过了什么吗?

-----> Python app detected
-----> Uninstalling stale dependencies
       Uninstalling Django-2.1.5:
         Successfully uninstalled Django-2.1.5
       Uninstalling Pillow-5.4.1:
         Successfully uninstalled Pillow-5.4.1
-----> Installing requirements with pip
       Collecting dj-database-url==0.5.0 (from -r /tmp/build_99fe21a8dcc00005ce600053adc20260/requirements.txt (line 1))
         Downloading https://files.pythonhosted.org/packages/d4/a6/4b8578c1848690d0c307c7c0596af2077536c9ef2a04d42b00fabaa7e49d/dj_database_url-0.5.0-py2.py3-none-any.whl
       Collecting Django==2.1.5 (from -r /tmp/build_99fe21a8dcc00005ce600053adc20260/requirements.txt (line 2))
         Downloading https://files.pythonhosted.org/packages/36/50/078a42b4e9bedb94efd3e0278c0eb71650ed9672cdc91bd5542953bec17f/Django-2.1.5-py3-none-any.whl (7.3MB)
       Collecting django-heroku==0.3.1 (from -r /tmp/build_99fe21a8dcc00005ce600053adc20260/requirements.txt (line 3))
         Downloading https://files.pythonhosted.org/packages/59/af/5475a876c5addd5a3494db47d9f7be93cc14d3a7603542b194572791b6c6/django_heroku-0.3.1-py2.py3-none-any.whl
       Collecting gunicorn==19.9.0 (from -r /tmp/build_99fe21a8dcc00005ce600053adc20260/requirements.txt (line 4))
         Downloading https://files.pythonhosted.org/packages/8c/da/b8dd8deb741bff556db53902d4706774c8e1e67265f69528c14c003644e6/gunicorn-19.9.0-py2.py3-none-any.whl (112kB)
       Collecting Pillow==5.4.1 (from -r /tmp/build_99fe21a8dcc00005ce600053adc20260/requirements.txt (line 5))
         Downloading https://files.pythonhosted.org/packages/ae/2a/0a0ab2833e5270664fb5fae590717f867ac6319b124160c09f1d3291de28/Pillow-5.4.1-cp37-cp37m-manylinux1_x86_64.whl (2.0MB)
       Collecting psycopg2==2.8.2 (from -r /tmp/build_99fe21a8dcc00005ce600053adc20260/requirements.txt (line 6))
         Downloading https://files.pythonhosted.org/packages/23/7e/93c325482c328619870b6cd09370f6dbe1148283daca65115cd63642e60f/psycopg2-2.8.2.tar.gz (368kB)
       Collecting whitenoise==4.1.2 (from -r /tmp/build_99fe21a8dcc00005ce600053adc20260/requirements.txt (line 8))
         Downloading https://files.pythonhosted.org/packages/fd/2a/b51377ab9826f0551da19951257d2434f46329cd6cfdf9592ea9ca5f6034/whitenoise-4.1.2-py2.py3-none-any.whl
       Installing collected packages: dj-database-url, Django, whitenoise, psycopg2, django-heroku, gunicorn, Pillow
         Running setup.py install for psycopg2: started
           Running setup.py install for psycopg2: finished with status 'done'
       Successfully installed Django-2.1.5 Pillow-5.4.1 dj-database-url-0.5.0 django-heroku-0.3.1 gunicorn-19.9.0 psycopg2-2.8.2 whitenoise-4.1.2
-----> $ python manage.py collectstatic --noinput
       119 static files copied to '/tmp/build_99fe21a8dcc00005ce600053adc20260/staticfiles', 375 post-processed.
-----> Discovering process types
 ~     Mis-cased procfile detected; ignoring.
 ~     Rename it to Procfile to have it honored.
       Procfile declares types -> (none)
-----> Compressing...
       Done: 68.2M
-----> Launching...
       Released v7
       https://andrew-data-incubator-project.herokuapp.com/ deployed to Heroku

My logs don't indicate any errors as far as I can tell, but I'm receiving the following error when loading the site:据我所知,我的日志没有显示任何错误,但是在加载网站时收到以下错误:

An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command heroku logs --tail

Below you can find the logs.您可以在下面找到日志。 Am I missing something here?我在这里想念什么吗?

-----> Python app detected
-----> Uninstalling stale dependencies
       Uninstalling Django-2.1.5:
         Successfully uninstalled Django-2.1.5
       Uninstalling Pillow-5.4.1:
         Successfully uninstalled Pillow-5.4.1
-----> Installing requirements with pip
       Collecting dj-database-url==0.5.0 (from -r /tmp/build_99fe21a8dcc00005ce600053adc20260/requirements.txt (line 1))
         Downloading https://files.pythonhosted.org/packages/d4/a6/4b8578c1848690d0c307c7c0596af2077536c9ef2a04d42b00fabaa7e49d/dj_database_url-0.5.0-py2.py3-none-any.whl
       Collecting Django==2.1.5 (from -r /tmp/build_99fe21a8dcc00005ce600053adc20260/requirements.txt (line 2))
         Downloading https://files.pythonhosted.org/packages/36/50/078a42b4e9bedb94efd3e0278c0eb71650ed9672cdc91bd5542953bec17f/Django-2.1.5-py3-none-any.whl (7.3MB)
       Collecting django-heroku==0.3.1 (from -r /tmp/build_99fe21a8dcc00005ce600053adc20260/requirements.txt (line 3))
         Downloading https://files.pythonhosted.org/packages/59/af/5475a876c5addd5a3494db47d9f7be93cc14d3a7603542b194572791b6c6/django_heroku-0.3.1-py2.py3-none-any.whl
       Collecting gunicorn==19.9.0 (from -r /tmp/build_99fe21a8dcc00005ce600053adc20260/requirements.txt (line 4))
         Downloading https://files.pythonhosted.org/packages/8c/da/b8dd8deb741bff556db53902d4706774c8e1e67265f69528c14c003644e6/gunicorn-19.9.0-py2.py3-none-any.whl (112kB)
       Collecting Pillow==5.4.1 (from -r /tmp/build_99fe21a8dcc00005ce600053adc20260/requirements.txt (line 5))
         Downloading https://files.pythonhosted.org/packages/ae/2a/0a0ab2833e5270664fb5fae590717f867ac6319b124160c09f1d3291de28/Pillow-5.4.1-cp37-cp37m-manylinux1_x86_64.whl (2.0MB)
       Collecting psycopg2==2.8.2 (from -r /tmp/build_99fe21a8dcc00005ce600053adc20260/requirements.txt (line 6))
         Downloading https://files.pythonhosted.org/packages/23/7e/93c325482c328619870b6cd09370f6dbe1148283daca65115cd63642e60f/psycopg2-2.8.2.tar.gz (368kB)
       Collecting whitenoise==4.1.2 (from -r /tmp/build_99fe21a8dcc00005ce600053adc20260/requirements.txt (line 8))
         Downloading https://files.pythonhosted.org/packages/fd/2a/b51377ab9826f0551da19951257d2434f46329cd6cfdf9592ea9ca5f6034/whitenoise-4.1.2-py2.py3-none-any.whl
       Installing collected packages: dj-database-url, Django, whitenoise, psycopg2, django-heroku, gunicorn, Pillow
         Running setup.py install for psycopg2: started
           Running setup.py install for psycopg2: finished with status 'done'
       Successfully installed Django-2.1.5 Pillow-5.4.1 dj-database-url-0.5.0 django-heroku-0.3.1 gunicorn-19.9.0 psycopg2-2.8.2 whitenoise-4.1.2
-----> $ python manage.py collectstatic --noinput
       119 static files copied to '/tmp/build_99fe21a8dcc00005ce600053adc20260/staticfiles', 375 post-processed.
-----> Discovering process types
 ~     Mis-cased procfile detected; ignoring.
 ~     Rename it to Procfile to have it honored.
       Procfile declares types -> (none)
-----> Compressing...
       Done: 68.2M
-----> Launching...
       Released v7
       https://andrew-data-incubator-project.herokuapp.com/ deployed to Heroku

My logs don't indicate any errors as far as I can tell, but I'm receiving the following error when loading the site:据我所知,我的日志没有显示任何错误,但是在加载网站时收到以下错误:

An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command heroku logs --tail

Below you can find the logs.您可以在下面找到日志。 Am I missing something here?我在这里想念什么吗?

-----> Python app detected
-----> Uninstalling stale dependencies
       Uninstalling Django-2.1.5:
         Successfully uninstalled Django-2.1.5
       Uninstalling Pillow-5.4.1:
         Successfully uninstalled Pillow-5.4.1
-----> Installing requirements with pip
       Collecting dj-database-url==0.5.0 (from -r /tmp/build_99fe21a8dcc00005ce600053adc20260/requirements.txt (line 1))
         Downloading https://files.pythonhosted.org/packages/d4/a6/4b8578c1848690d0c307c7c0596af2077536c9ef2a04d42b00fabaa7e49d/dj_database_url-0.5.0-py2.py3-none-any.whl
       Collecting Django==2.1.5 (from -r /tmp/build_99fe21a8dcc00005ce600053adc20260/requirements.txt (line 2))
         Downloading https://files.pythonhosted.org/packages/36/50/078a42b4e9bedb94efd3e0278c0eb71650ed9672cdc91bd5542953bec17f/Django-2.1.5-py3-none-any.whl (7.3MB)
       Collecting django-heroku==0.3.1 (from -r /tmp/build_99fe21a8dcc00005ce600053adc20260/requirements.txt (line 3))
         Downloading https://files.pythonhosted.org/packages/59/af/5475a876c5addd5a3494db47d9f7be93cc14d3a7603542b194572791b6c6/django_heroku-0.3.1-py2.py3-none-any.whl
       Collecting gunicorn==19.9.0 (from -r /tmp/build_99fe21a8dcc00005ce600053adc20260/requirements.txt (line 4))
         Downloading https://files.pythonhosted.org/packages/8c/da/b8dd8deb741bff556db53902d4706774c8e1e67265f69528c14c003644e6/gunicorn-19.9.0-py2.py3-none-any.whl (112kB)
       Collecting Pillow==5.4.1 (from -r /tmp/build_99fe21a8dcc00005ce600053adc20260/requirements.txt (line 5))
         Downloading https://files.pythonhosted.org/packages/ae/2a/0a0ab2833e5270664fb5fae590717f867ac6319b124160c09f1d3291de28/Pillow-5.4.1-cp37-cp37m-manylinux1_x86_64.whl (2.0MB)
       Collecting psycopg2==2.8.2 (from -r /tmp/build_99fe21a8dcc00005ce600053adc20260/requirements.txt (line 6))
         Downloading https://files.pythonhosted.org/packages/23/7e/93c325482c328619870b6cd09370f6dbe1148283daca65115cd63642e60f/psycopg2-2.8.2.tar.gz (368kB)
       Collecting whitenoise==4.1.2 (from -r /tmp/build_99fe21a8dcc00005ce600053adc20260/requirements.txt (line 8))
         Downloading https://files.pythonhosted.org/packages/fd/2a/b51377ab9826f0551da19951257d2434f46329cd6cfdf9592ea9ca5f6034/whitenoise-4.1.2-py2.py3-none-any.whl
       Installing collected packages: dj-database-url, Django, whitenoise, psycopg2, django-heroku, gunicorn, Pillow
         Running setup.py install for psycopg2: started
           Running setup.py install for psycopg2: finished with status 'done'
       Successfully installed Django-2.1.5 Pillow-5.4.1 dj-database-url-0.5.0 django-heroku-0.3.1 gunicorn-19.9.0 psycopg2-2.8.2 whitenoise-4.1.2
-----> $ python manage.py collectstatic --noinput
       119 static files copied to '/tmp/build_99fe21a8dcc00005ce600053adc20260/staticfiles', 375 post-processed.
-----> Discovering process types
 ~     Mis-cased procfile detected; ignoring.
 ~     Rename it to Procfile to have it honored.
       Procfile declares types -> (none)
-----> Compressing...
       Done: 68.2M
-----> Launching...
       Released v7
       https://andrew-data-incubator-project.herokuapp.com/ deployed to Heroku

My logs don't indicate any errors as far as I can tell, but I'm receiving the following error when loading the site:据我所知,我的日志没有显示任何错误,但是在加载网站时收到以下错误:

An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command heroku logs --tail

Below you can find the logs.您可以在下面找到日志。 Am I missing something here?我在这里想念什么吗?

-----> Python app detected
-----> Uninstalling stale dependencies
       Uninstalling Django-2.1.5:
         Successfully uninstalled Django-2.1.5
       Uninstalling Pillow-5.4.1:
         Successfully uninstalled Pillow-5.4.1
-----> Installing requirements with pip
       Collecting dj-database-url==0.5.0 (from -r /tmp/build_99fe21a8dcc00005ce600053adc20260/requirements.txt (line 1))
         Downloading https://files.pythonhosted.org/packages/d4/a6/4b8578c1848690d0c307c7c0596af2077536c9ef2a04d42b00fabaa7e49d/dj_database_url-0.5.0-py2.py3-none-any.whl
       Collecting Django==2.1.5 (from -r /tmp/build_99fe21a8dcc00005ce600053adc20260/requirements.txt (line 2))
         Downloading https://files.pythonhosted.org/packages/36/50/078a42b4e9bedb94efd3e0278c0eb71650ed9672cdc91bd5542953bec17f/Django-2.1.5-py3-none-any.whl (7.3MB)
       Collecting django-heroku==0.3.1 (from -r /tmp/build_99fe21a8dcc00005ce600053adc20260/requirements.txt (line 3))
         Downloading https://files.pythonhosted.org/packages/59/af/5475a876c5addd5a3494db47d9f7be93cc14d3a7603542b194572791b6c6/django_heroku-0.3.1-py2.py3-none-any.whl
       Collecting gunicorn==19.9.0 (from -r /tmp/build_99fe21a8dcc00005ce600053adc20260/requirements.txt (line 4))
         Downloading https://files.pythonhosted.org/packages/8c/da/b8dd8deb741bff556db53902d4706774c8e1e67265f69528c14c003644e6/gunicorn-19.9.0-py2.py3-none-any.whl (112kB)
       Collecting Pillow==5.4.1 (from -r /tmp/build_99fe21a8dcc00005ce600053adc20260/requirements.txt (line 5))
         Downloading https://files.pythonhosted.org/packages/ae/2a/0a0ab2833e5270664fb5fae590717f867ac6319b124160c09f1d3291de28/Pillow-5.4.1-cp37-cp37m-manylinux1_x86_64.whl (2.0MB)
       Collecting psycopg2==2.8.2 (from -r /tmp/build_99fe21a8dcc00005ce600053adc20260/requirements.txt (line 6))
         Downloading https://files.pythonhosted.org/packages/23/7e/93c325482c328619870b6cd09370f6dbe1148283daca65115cd63642e60f/psycopg2-2.8.2.tar.gz (368kB)
       Collecting whitenoise==4.1.2 (from -r /tmp/build_99fe21a8dcc00005ce600053adc20260/requirements.txt (line 8))
         Downloading https://files.pythonhosted.org/packages/fd/2a/b51377ab9826f0551da19951257d2434f46329cd6cfdf9592ea9ca5f6034/whitenoise-4.1.2-py2.py3-none-any.whl
       Installing collected packages: dj-database-url, Django, whitenoise, psycopg2, django-heroku, gunicorn, Pillow
         Running setup.py install for psycopg2: started
           Running setup.py install for psycopg2: finished with status 'done'
       Successfully installed Django-2.1.5 Pillow-5.4.1 dj-database-url-0.5.0 django-heroku-0.3.1 gunicorn-19.9.0 psycopg2-2.8.2 whitenoise-4.1.2
-----> $ python manage.py collectstatic --noinput
       119 static files copied to '/tmp/build_99fe21a8dcc00005ce600053adc20260/staticfiles', 375 post-processed.
-----> Discovering process types
 ~     Mis-cased procfile detected; ignoring.
 ~     Rename it to Procfile to have it honored.
       Procfile declares types -> (none)
-----> Compressing...
       Done: 68.2M
-----> Launching...
       Released v7
       https://andrew-data-incubator-project.herokuapp.com/ deployed to Heroku

试试web:node server.js不是空间web: node server.js

尝试 web:node server.js 不是空间 web: ProcFile 中的 node server.js

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Heroku 应用程序成功部署,但在加载站点时收到应用程序错误。 但我似乎可以找到一个错误 - Heroku app successfully deploying, but receiving application error when loading site. But I can seem to find an error 应用程序错误:我的 Flask-web-app 已成功部署在 Heroku 上,但在加载站点时收到应用程序错误 - Application error: My Flask-web-app is successfully deploy on Heroku but receiving application error when loading site Heroku 应用程序成功部署,但打开应用程序时收到应用程序错误 - Heroku app successfully deployed, but receiving application error when opening app Heroku 部署 Flask 应用程序时出现“应用程序错误” - Heroku "Application error" when deploying Flask app 部署 Dash 应用程序时出现 Heroku 应用程序错误 - Heroku Application Error when deploying Dash app 成功部署 Django API 到 Heroku 后应用程序错误 - Application Error after successfully deploying Django API to Heroku Heroku 应用部署成功但应用报错 - Heroku app deployed successfully but Application Error 将 Django 应用程序部署到 Heroku 时未加载图像 - Images not loading when deploying Django app to Heroku 部署到heroku时Django应用程序错误 - Django application error when deploying to heroku 将Django应用程序部署到Heroku时出错 - Error when deploying django app to heroku
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM