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:

errors

I tried so mang ways to solute them, such as:

  1. 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)
  2. init the repository and push agagin;
  3. create one more app on heroku(maybe 6 apps in one day);
  4. search the answer of my errors on google/bing/stack overflow;
  5. 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.

  1. Buildpacks | Heroku Dev Center

  2. django - Heroku/python failed to detect set buildpack - Stack Overflow

  3. Gunicorn and the others

  4. Heroku 使用教程 - 简书

  5. FLASK在HEROKU上部署- CoCode

  6. 记录一次Heroku部署完整过程
  7. How To Get A Flask App On Heroku

results matching ""

    No results matching ""