/
commandlines.txt
44 lines (33 loc) · 1.1 KB
/
commandlines.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# backend app server start
uvicorn app.main:app --reload
# backend update dependencies
pip-compile --generate-hashes app/requirements/production.in
pip-compile --generate-hashes app/requirements/production.in app/requirements/develop.in --output-file app/requirements/develop.txt
pip-sync app/requirements/production.txt
pip-sync app/requirements/develop.txt
# frontend
cd frontend
npm install
npm run dev
# jupyter notebook
PYTHONPATH=.. jupyter notebook --notebook-dir notebooks
# tests
pytest
coverage run -m pytest && coverage html
# run individual frontend test
cd frontend
node_modules/jest/bin/jest.js -t "fetches the list of services"
# debug with ipdb
PYTHONBREAKPOINT=pdb.set_trace pytest -s app/tests/test_models.py::test_service_get_steps_returns_steps_from_deployment
# postgres db
pg_ctl initdb -D databases/postgres
pg_ctl -D databases/postgres start
pg_ctl -D databases/postgres stop
start postgres via honcho..
create fastdeploy database:
dropdb deploy
dropuser deploy
createdb deploy
createuser deploy
psql -d deploy -c "GRANT ALL PRIVILEGES ON DATABASE deploy to deploy;"
postgresql:///deploy