heroku + git + venv commands Flashcards
1
Q
command to create a virtual environment (windows)
A
python3 -m venv venv
2
Q
command to activate virtual environment (windows)
A
venv\Scripts\activate
3
Q
pip command to write all installed dependencies to specific file
A
pip freeze > requirements.txt
4
Q
command used to write to a new file or overwrite an existing file
A
echo venv > .gitignore
5
Q
command used to write to an existing file without deleting current content
A
echo __pycache__»_space; .gitignore
6
Q
command to initialize a Heroku application
A
heroku create webapp-example
7
Q
command to push the Git repository to remote heroku to trigger building and deployment process in heroku
A
git push heroku master