https://github.com/herokaijp/devcenter/wiki/django I tried it with reference to here and was addicted to it. But,
See the comments below for more details.
The following is just a memory of the contents at that time, so I'm not sure.
As for the place where I proceeded without any problem, it is completely the same as the reference page, so I will do it.
When I logged in to heroku and entered virtualenv, the first thing that went wrong was the installation of django-toolbelt.
pip install django-toolbelt
And an error.
Error: pg_config executable not found.
I couldn't help it, so I decided to try pip install one by one with Django, psycopg2, gunicorn, dj-database-url, dj-static, static that this command was trying to install.
When I googled, there were quite a few similar cases, but many of them were scared to implement the solution because it didn't make sense to me. I found this blog while I was looking for it. http://spiri-tua-lism.com/?p=617
When I think about it, I don't understand the difference between pip and easy at all, but it was still the most imaginable solution, so I just copied it. As a result, it was probably installed successfully. When I checked with pip freeze, psycopg2 was added properly.
So if you proceed from there again, heroku clears create and git pushes without problems.
heroku ps:scale web=1
From this command
Scaling dynos... failed ! Resource not found
This error. why? Make sure that the page you created is properly registered on heroku.
heroku list
=== My Apps thawing-shelf-8495
The name is automatically created, but it is displayed properly. Even if I google, I do not know how to deal with it, so for the time being,
heroku restart
I tried it, but it didn't change as expected. When I check the log, it looks like this.
heroku logs
2013-12-21T15:32:35.111156+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path=/favicon.ico host=thawing-shelf-8495.herokuapp.com fwd="220.1.64.3" dyno= connect= service= status=503 bytes=
It seems that the items after dyno are empty, but this is ...?
Recommended Posts