· 4 years ago · May 02, 2021, 04:28 PM
1mdz@mdz-hyperbook:~/projects/jasiek_interviews/daft/daftcode_testcase$ heroku addons:create heroku-postgresql:hobby-dev
2 › Warning: heroku update available from 7.52.0 to 7.53.0.
3Creating heroku-postgresql:hobby-dev on ⬢ apka-jaska... free
4Database has been created and is available
5 ! This database is empty. If upgrading, you can transfer
6 ! data from another database with pg:copy
7Created postgresql-parallel-42563 as DATABASE_URL
8Use heroku addons:docs heroku-postgresql to view documentation
9mdz@mdz-hyperbook:~/projects/jasiek_interviews/daft/daftcode_testcase$ git push heroku master
10Counting objects: 36, done.
11Delta compression using up to 12 threads.
12Compressing objects: 100% (33/33), done.
13Writing objects: 100% (36/36), 9.21 KiB | 4.60 MiB/s, done.
14Total 36 (delta 4), reused 0 (delta 0)
15remote: Compressing source files... done.
16remote: Building source:
17remote:
18remote: -----> Building on the Heroku-20 stack
19remote: -----> Determining which buildpack to use for this app
20remote: -----> Python app detected
21remote: -----> No Python version was specified. Using the buildpack default: python-3.9.4
22remote: To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes
23remote: -----> Installing python-3.9.4
24remote: -----> Installing pip 20.2.4, setuptools 47.1.1 and wheel 0.36.2
25remote: -----> Installing SQLite3
26remote: -----> Installing requirements with pip
27remote: Collecting Django==2.2
28remote: Downloading Django-2.2-py3-none-any.whl (7.4 MB)
29remote: Collecting django-environ
30remote: Downloading django_environ-0.4.5-py2.py3-none-any.whl (21 kB)
31remote: Collecting djangorestframework==3.11.0
32remote: Downloading djangorestframework-3.11.0-py3-none-any.whl (911 kB)
33remote: Collecting djoser==2.0.3
34remote: Downloading djoser-2.0.3-py3-none-any.whl (25 kB)
35remote: Collecting dj-database-url
36remote: Downloading dj_database_url-0.5.0-py2.py3-none-any.whl (5.5 kB)
37remote: Collecting gunicorn
38remote: Downloading gunicorn-20.1.0-py3-none-any.whl (79 kB)
39remote: Collecting whitenoise
40remote: Downloading whitenoise-5.2.0-py2.py3-none-any.whl (19 kB)
41remote: Collecting psycopg2
42remote: Downloading psycopg2-2.8.6.tar.gz (383 kB)
43remote: Collecting pytz
44remote: Downloading pytz-2021.1-py2.py3-none-any.whl (510 kB)
45remote: Collecting sqlparse
46remote: Downloading sqlparse-0.4.1-py3-none-any.whl (42 kB)
47remote: Collecting django-templated-mail
48remote: Downloading django_templated_mail-1.1.1-py3-none-any.whl (4.7 kB)
49remote: Building wheels for collected packages: psycopg2
50remote: Building wheel for psycopg2 (setup.py): started
51remote: Building wheel for psycopg2 (setup.py): finished with status 'done'
52remote: Created wheel for psycopg2: filename=psycopg2-2.8.6-cp39-cp39-linux_x86_64.whl size=523826 sha256=56c07c843ac5e34d777a6df07e0af2cc72f96cff751c3168271fd97eaed98f64
53remote: Stored in directory: /tmp/pip-ephem-wheel-cache-pc0uf7fr/wheels/a2/07/10/a9a82e72d50feb8d646acde6a88000bbf2ca0f82e41aea438a
54remote: Successfully built psycopg2
55remote: Installing collected packages: pytz, sqlparse, Django, django-environ, djangorestframework, django-templated-mail, djoser, dj-database-url, gunicorn, whitenoise, psycopg2
56remote: Successfully installed Django-2.2 dj-database-url-0.5.0 django-environ-0.4.5 django-templated-mail-1.1.1 djangorestframework-3.11.0 djoser-2.0.3 gunicorn-20.1.0 psycopg2-2.8.6 pytz-2021.1 sqlparse-0.4.1 whitenoise-5.2.0
57remote: -----> $ python manage.py collectstatic --noinput
58remote: Traceback (most recent call last):
59remote: File "/app/.heroku/python/lib/python3.9/site-packages/django/core/management/__init__.py", line 204, in fetch_command
60remote: app_name = commands[subcommand]
61remote: KeyError: 'collectstatic'
62remote: During handling of the above exception, another exception occurred:
63remote: Traceback (most recent call last):
64remote: File "/tmp/build_d0c303e7/manage.py", line 21, in <module>
65remote: main()
66remote: File "/tmp/build_d0c303e7/manage.py", line 17, in main
67remote: execute_from_command_line(sys.argv)
68remote: File "/app/.heroku/python/lib/python3.9/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
69remote: utility.execute()
70remote: File "/app/.heroku/python/lib/python3.9/site-packages/django/core/management/__init__.py", line 375, in execute
71remote: self.fetch_command(subcommand).run_from_argv(self.argv)
72remote: File "/app/.heroku/python/lib/python3.9/site-packages/django/core/management/__init__.py", line 211, in fetch_command
73remote: settings.INSTALLED_APPS
74remote: File "/app/.heroku/python/lib/python3.9/site-packages/django/conf/__init__.py", line 79, in __getattr__
75remote: self._setup(name)
76remote: File "/app/.heroku/python/lib/python3.9/site-packages/django/conf/__init__.py", line 66, in _setup
77remote: self._wrapped = Settings(settings_module)
78remote: File "/app/.heroku/python/lib/python3.9/site-packages/django/conf/__init__.py", line 176, in __init__
79remote: raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.")
80remote: django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty.
81remote:
82remote: ! Error while running '$ python manage.py collectstatic --noinput'.
83remote: See traceback above for details.
84remote:
85remote: You may need to update application code to resolve this error.
86remote: Or, you can disable collectstatic for this application:
87remote:
88remote: $ heroku config:set DISABLE_COLLECTSTATIC=1
89remote:
90remote: https://devcenter.heroku.com/articles/django-assets
91remote: ! Push rejected, failed to compile Python app.
92remote:
93remote: ! Push failed
94remote: !
95remote: ! ## Warning - The same version of this code has already been built: 91ec615e356508ff0ac68b39c9e4eb3baec9cbbf
96remote: !
97remote: ! We have detected that you have triggered a build from source code with version 91ec615e356508ff0ac68b39c9e4eb3baec9cbbf
98remote: ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch.
99remote: !
100remote: ! If you are developing on a branch and deploying via git you must run:
101remote: !
102remote: ! git push heroku <branchname>:main
103remote: !
104remote: ! This article goes into details on the behavior:
105remote: ! https://devcenter.heroku.com/articles/duplicate-build-version
106remote:
107remote: Verifying deploy...
108remote:
109remote: ! Push rejected to apka-jaska.
110remote:
111To https://git.heroku.com/apka-jaska.git
112 ! [remote rejected] master -> master (pre-receive hook declined)
113error: failed to push some refs to 'https://git.heroku.com/apka-jaska.git'