| 1 | #!/bin/bash |
| 2 | # For development only |
| 3 | |
| 4 | # if venv doesn't exist, create it |
| 5 | if [; then |
| 6 | |
| 7 | fi |
| 8 | |
| 9 | # if venv is not activated, activate it |
| 10 | if [; then |
| 11 | |
| 12 | fi |
| 13 | |
| 14 | # if first arg is back, build frontend and run backend |
| 15 | if [; then |
| 16 | # build the frontend |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | # create secret key |
| 22 | |
| 23 | |
| 24 | |
| 25 | # migrate database |
| 26 | |
| 27 | |
| 28 | # run backend development server |
| 29 | & |
| 30 | fi |
| 31 | |
| 32 | # if first arg is front, run frontend development server |
| 33 | if [; then |
| 34 | |
| 35 | & |
| 36 |