I'm trying to deploy a Flask webapp to Heroku and I have seen conflicting information as to which files I need to include in the git repository.
My webapp is built within a virtual environment (venv), so I have a Pipfile
and a Pipfile.lock
. Do I also need a requirements.txt
? Will one supersede the other?
Another related question I have is what would occur if a certain package failed to install in the virtual environment: can I manually add it to the requirements.txt
or Pipfile
? Would this effectively do the same thing as pipenv install ...
or is that doing something else beyond adding the package to the list of requirements (considering Heroku is installing the packages upon deployment).
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…