CH6 Section : 2+2=5
Are you such a dreamer To put the world to rights I'll stay home forever Where two and two always makes a five
-- Radiohead
Section 2 :
The tutorial of heroku is good for me to follow,I succeed in creating two app and running them locally, but when I tried to push my own application to heroku, the errors were made everywhere.
For example:
writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
Error: pg_config executable not found.
Please add the directory containing pg_config to the PATH
or specify the full executable path with the option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/57/n3pmt2vd73j7xyyd4dnqctgh0000gp/T/pip-build-sjiifkku/psycopg2/
These pictures can show you that day I was going through some kind of - close to - an emotional breakdown sort of thing, I am at the point of collapse:

I tried so mang ways to solute them, such as:
- learn git command ASAP(I use GitHub Desktop to push my code in the past few weeks, plan to learn it after finished all the course of python)
- init the repository and push agagin;
- create one more app on heroku(maybe 6 apps in one day);
- search the answer of my errors on google/bing/stack overflow;
- ask for help, show the errors to the classmates and so on.
BUT the apps crashed again and again, and I still don't know how to determe the process that crashed the app.
Here are some link for the errors:
Buildpacks | Heroku Dev Center
django - Heroku/python failed to detect set buildpack - Stack Overflow
Gunicorn and the others
Heroku 使用教程 - 简书
FLASK在HEROKU上部署- CoCode
- 记录一次Heroku部署完整过程
- How To Get A Flask App On Heroku