heroku + git + venv commands Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

command to create a virtual environment (windows)

A

python3 -m venv venv

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

command to activate virtual environment (windows)

A

venv\Scripts\activate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

pip command to write all installed dependencies to specific file

A

pip freeze > requirements.txt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

command used to write to a new file or overwrite an existing file

A

echo venv > .gitignore

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

command used to write to an existing file without deleting current content

A

echo __pycache__&raquo_space; .gitignore

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

command to initialize a Heroku application

A

heroku create webapp-example

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

command to push the Git repository to remote heroku to trigger building and deployment process in heroku

A

git push heroku master

How well did you know this?
1
Not at all
2
3
4
5
Perfectly