-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsoj.zsh
More file actions
executable file
·45 lines (44 loc) · 1.43 KB
/
soj.zsh
File metadata and controls
executable file
·45 lines (44 loc) · 1.43 KB
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
45
#!/bin/zsh
while {getopts fblpd arg} {
case $arg {
(b)
echo -e '\033[32m\033[1m[activate venv]\033[0m'
source ./venv/bin/activate
echo -e '\033[32m\033[1m[install requirements]\033[0m'
pip install -r requirements.txt
echo -e '\033[32m\033[1m[migrate]\033[0m'
python manage.py migrate
echo -e '\033[32m\033[1m[run test]\033[0m'
python manage.py test
echo -e '\033[32m\033[1m[run server]\033[0m'
python manage.py runserver 0.0.0.0:8000
;;
(f)
echo -e '\033[32m\033[1m[install requirements]\033[0m'
cnpm install
echo -e '\033[32m\033[1m[lint]\033[0m'
npm run lint
npm run lint:css
echo -e '\033[32m\033[1m[run server]\033[0m'
npm run serve
;;
(l)
echo -e '\033[32m\033[1m[install requirements]\033[0m'
cnpm install
echo -e '\033[32m\033[1m[run server]\033[0m'
npm run serve
;;
(p)
echo -e '\033[32m\033[1m[install requirements]\033[0m'
cnpm install
echo -e '\033[32m\033[1m[run server]\033[0m'
npm run start
;;
(d)
echo -e '\033[32m[install requirements]\033[0m'
cnpm install
echo -e '\033[32m[run server]\033[0m'
npm run start
;;
}
}