-
Notifications
You must be signed in to change notification settings - Fork 0
/
jenkins_django_gpfjs.sh
executable file
·46 lines (32 loc) · 1.33 KB
/
jenkins_django_gpfjs.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
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
set -e
source ./jenkins_version.sh
rm -rf gpf/wdae/wdae/gpfjs
cp -r django_gpfjs gpf/wdae/wdae/gpfjs
tar zxvf gpfjs-dist-gpfjs.tar.gz -C gpf/wdae/wdae/gpfjs/static/gpfjs/
cd gpf/wdae/wdae
sed -i \
s/"urlpatterns = \[.*$"/"urlpatterns = \[ url(r'\^\$', index), url(r'\^gpfjs\/\.\*\$', index),"/g \
wdae/urls.py
sed -i \
s/"# gpfjs.*$"/"from gpfjs.views import index"/g \
wdae/urls.py
sed -i \
s/"\s*# 'gpfjs.*$"/" 'gpfjs',"/g \
wdae/default_settings.py
sed -i \
s/"\s*\"NAME\": \"wdae.sql\","/"'NAME': os.path.join(os.environ.get('DAE_DB_DIR'), 'wdae\/wdae.sql'),"/g \
wdae/default_settings.py
sed -i \
s/"\s*\"filename\": \"wdae-api.log\","/"'filename': os.path.join(os.environ.get('DAE_DB_DIR'), 'wdae\/wdae-api.log'),"/g \
wdae/default_settings.py
sed -i \
s/"\s*\"filename\": \"wdae-debug.log\","/"'filename': os.path.join(os.environ.get('DAE_DB_DIR'), 'wdae\/wdae-debug.log'),"/g \
wdae/default_settings.py
sed -i \
s/"\s*\"LOCATION\": \"wdae_django_default.cache\","/"'LOCATION': os.path.join(os.environ.get('DAE_DB_DIR'), 'wdae\/wdae_django_default.cache'),"/g \
wdae/default_settings.py
sed -i \
s/"\s*\"LOCATION\": \"wdae_django_pre.cache\","/"'LOCATION': os.path.join(os.environ.get('DAE_DB_DIR'), 'wdae\/wdae_django_pre.cache'),"/g \
wdae/default_settings.py
cd -