File tree 5 files changed +54
-14
lines changed
5 files changed +54
-14
lines changed File renamed without changes.
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env python3
2
+ cd `dirname $0`
3
+ echo "installing dependencies..."
4
+ yum install - y python3 python3 - devel python3 - pip epel - release lzo - devel lzo - minilzo zlib - devel libjpeg - turbo - devel
5
+ pip3 install - r requirements1 .txt - i https :// pypi .tuna .tsinghua .edu .cn / simple
6
+ pip3 install - r requirements2 .txt - i https :// pypi .tuna .tsinghua .edu .cn / simple
7
+ file = "db.sqlite3"
8
+ if [ ! - f $file ]
9
+ then
10
+ echo "initializing db.sqlite3..."
11
+ python3 manage .py makemigrations
12
+ python3 manage .py migrate
13
+ python3 manage .py makemigrations mdict
14
+ python3 manage .py migrate mdict
15
+ python3 manage .py makemigrations mynav
16
+ python3 manage .py migrate mynav
17
+ python3 manage .py createsuperuser
18
+ else
19
+ echo "db.sqlite3 already exists..."
20
+ fi
21
+ chmod 777 db .sqlite3
22
+ cd mdict / readlib / pyx
23
+ echo "cython compiling..."
24
+ source build .sh
25
+ cd ../ ../ ../
Original file line number Diff line number Diff line change 1
- file=" mdict_path.json"
2
- if [ ! -f $file ]; then
3
- echo " set mdict path and audio path..."
4
- read -p " input mdict path: " mdict_path
5
- if [ $mdict_path ]; then
6
- python3 init_mdict_path.py -m $mdict_path
7
- fi
8
- read -p " input audio path: " audio_path
9
- if [ $audio_path ]; then
10
- python3 init_mdict_path.py -a $audio_path
11
- fi
12
- fi
13
- source init_server.sh
14
- python3 manage.py runserver 0.0.0.0:8000 --noreload
1
+ source run_server_apt.sh
Original file line number Diff line number Diff line change
1
+ file=" mdict_path.json"
2
+ if [ ! -f $file ]; then
3
+ echo " set mdict path and audio path..."
4
+ read -p " input mdict path: " mdict_path
5
+ if [ $mdict_path ]; then
6
+ python3 init_mdict_path.py -m $mdict_path
7
+ fi
8
+ read -p " input audio path: " audio_path
9
+ if [ $audio_path ]; then
10
+ python3 init_mdict_path.py -a $audio_path
11
+ fi
12
+ fi
13
+ source init_server_apt.sh
14
+ python3 manage.py runserver 0.0.0.0:8000 --noreload
Original file line number Diff line number Diff line change
1
+ file=" mdict_path.json"
2
+ if [ ! -f $file ]; then
3
+ echo " set mdict path and audio path..."
4
+ read -p " input mdict path: " mdict_path
5
+ if [ $mdict_path ]; then
6
+ python3 init_mdict_path.py -m $mdict_path
7
+ fi
8
+ read -p " input audio path: " audio_path
9
+ if [ $audio_path ]; then
10
+ python3 init_mdict_path.py -a $audio_path
11
+ fi
12
+ fi
13
+ source init_server_yum.sh
14
+ python3 manage.py runserver 0.0.0.0:8000 --noreload
You can’t perform that action at this time.
0 commit comments