File tree 2 files changed +11
-13
lines changed
2 files changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ set -euxo pipefail
3
3
4
4
while true
5
5
do
6
- if test -f " /crm /config/Main.php" ; then
7
- unique_key=$( grep application_unique_key /crm /config/Main.php | awk -F" '" ' {print $2}' )
6
+ if test -f " /var/www/html /config/Main.php" ; then
7
+ unique_key=$( grep application_unique_key /var/www/html /config/Main.php | awk -F" '" ' {print $2}' )
8
8
wget --timeout=900 -qO- http://nginx/cron.php? app_key=" ${unique_key} "
9
9
fi
10
10
Original file line number Diff line number Diff line change @@ -12,17 +12,6 @@ services:
12
12
target : /var/lib/mysql
13
13
ports :
14
14
- 3306:3306
15
- cron :
16
- build :
17
- context : ./cron
18
- deploy :
19
- restart_policy :
20
- condition : on-failure
21
- delay : 60s
22
- volumes :
23
- - type : volume
24
- source : crm_data
25
- target : /crm
26
15
nginx :
27
16
hostname : yeti
28
17
build :
@@ -35,6 +24,15 @@ services:
35
24
target : /var/www/html
36
25
ports :
37
26
- 80:80
27
+ cron :
28
+ build :
29
+ context : ./cron
30
+ deploy :
31
+ restart_policy :
32
+ condition : on-failure
33
+ delay : 60s
34
+ volumes_from :
35
+ - nginx:ro
38
36
php :
39
37
build :
40
38
context : .
You can’t perform that action at this time.
0 commit comments