|
1 | 1 | {
|
2 |
| - "packages": [ |
3 |
| - "python310", |
4 |
| - "openssl@latest", |
5 |
| - "python310Packages.pip", |
6 |
| - "postgresql@latest" |
| 2 | + "packages": [ |
| 3 | + "python310", |
| 4 | + "openssl@latest", |
| 5 | + "python310Packages.pip", |
| 6 | + "postgresql@latest" |
| 7 | + ], |
| 8 | + "env": { |
| 9 | + "PGPORT": "5434" |
| 10 | + }, |
| 11 | + "shell": { |
| 12 | + "init_hook": [ |
| 13 | + ". $VENV_DIR/bin/activate", |
| 14 | + "pip install -r requirements.txt" |
7 | 15 | ],
|
8 |
| - "env": { |
9 |
| - "PGPORT": "5434" |
10 |
| - }, |
11 |
| - "shell": { |
12 |
| - "init_hook": [ |
13 |
| - ". $VENV_DIR/bin/activate", |
14 |
| - "pip install -r requirements.txt" |
15 |
| - ], |
16 |
| - "scripts": { |
17 |
| - "create_db": [ |
18 |
| - "echo \"Creating DB\"", |
19 |
| - "dropdb --if-exists todo_db", |
20 |
| - "createdb todo_db", |
21 |
| - "psql todo_db -c \"CREATE USER todo_user WITH PASSWORD 'secretpassword';\"", |
22 |
| - "python todo_project/manage.py makemigrations", |
23 |
| - "python todo_project/manage.py migrate" |
24 |
| - ], |
25 |
| - "initdb": [ |
26 |
| - "initdb" |
27 |
| - ], |
28 |
| - "server": [ |
29 |
| - "python todo_project/manage.py runserver" |
30 |
| - ], |
31 |
| - "test": [ |
32 |
| - "initdb", |
33 |
| - "devbox services start", |
34 |
| - "devbox run create_db", |
35 |
| - "python todo_project/manage.py test", |
36 |
| - "devbox services stop" |
37 |
| - ] |
38 |
| - } |
| 16 | + "scripts": { |
| 17 | + "create_db": [ |
| 18 | + "echo \"Creating DB\"", |
| 19 | + "dropdb --if-exists todo_db", |
| 20 | + "createdb todo_db", |
| 21 | + "psql todo_db -c \"CREATE USER todo_user WITH PASSWORD 'secretpassword';\"", |
| 22 | + "python todo_project/manage.py makemigrations", |
| 23 | + "python todo_project/manage.py migrate" |
| 24 | + ], |
| 25 | + "initdb": [ |
| 26 | + "initdb" |
| 27 | + ], |
| 28 | + "server": [ |
| 29 | + "python todo_project/manage.py runserver" |
| 30 | + ], |
| 31 | + "test": [ |
| 32 | + "initdb", |
| 33 | + "devbox services start", |
| 34 | + "devbox run create_db", |
| 35 | + "python todo_project/manage.py test", |
| 36 | + "devbox services stop" |
| 37 | + ] |
39 | 38 | }
|
| 39 | + } |
40 | 40 | }
|
0 commit comments