forked from momosecurity/aswan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prepare.sh
35 lines (24 loc) · 1.2 KB
/
prepare.sh
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
#!/usr/bin/env bash
# WARNING Do Not Run THIS Script, just a collection to fix some at osx aso.
# run it by hand, one after the other, you have to know what you ard doing
# prepare the translation files
# https://docs.djangoproject.com/en/3.0/topics/i18n/translation/
django-admin makemessages -l cn
django-admin makemessages -l en
# To reexamine all source code and templates for new translation strings and update all message files for all languages, run this
django-admin makemessages -a
# https://docs.djangoproject.com/en/3.0/topics/i18n/translation/#compiling-message-files
django-admin compilemessages
sed -i '107s/.*/version_info = (1, 3, 13, "final", 0)/' /usr/local/lib/python3.7/site-packages/pymysql/__init__.py
#mongo:
docker run -d --name mongo -v $HOME/docker_volumes/mongodb:/data/db -p 27017:27017 mongo:latest
#mysql:
docker run -d --name mysql -e MYSQL_ROOT_PASSWORD=root -v $HOME/docker_volumes/mysql:/var/lib/mysql -v $HOME/docker_volumes/conf/mysql:/etc/mysql/conf.d -p 3306:3306 mysql:5.6
#redis:
docker run -d --name redis -p 6379:6379 -v $HOME/docker_volumes/redis:/var/lib/redis redis:latest
# check if all is running
docker ps
rm nohup.out
touch nohup.out
ps -fA | grep python
kill -9 xxxxx