@glicogh/healthcare-cdk 0.1.25 → 0.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -85,12 +85,9 @@ sudo ln -sf $configuration_dir/supervisor.{{serviceName}}-service-server.conf /e
|
|
|
85
85
|
sudo systemctl restart supervisor
|
|
86
86
|
|
|
87
87
|
# register cron
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
#install new cron file
|
|
92
|
-
crontab tmpCronFile
|
|
93
|
-
rm tmpCronFile
|
|
88
|
+
cron_command="cd $service_dir && php artisan schedule:run >> /dev/null 2>&1"
|
|
89
|
+
cron_job="* * * * * $cron_command"
|
|
90
|
+
( ( ( crontab -l || true ) 2> /dev/null ) | grep -v -F "$cron_command" ; echo "$cron_job" ) | crontab -
|
|
94
91
|
|
|
95
92
|
# service discovery
|
|
96
93
|
php $service_dir/artisan glico:healthcare:microservice:discovery
|
package/package.json
CHANGED
|
@@ -85,12 +85,9 @@ sudo ln -sf $configuration_dir/supervisor.{{serviceName}}-service-server.conf /e
|
|
|
85
85
|
sudo systemctl restart supervisor
|
|
86
86
|
|
|
87
87
|
# register cron
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
#install new cron file
|
|
92
|
-
crontab tmpCronFile
|
|
93
|
-
rm tmpCronFile
|
|
88
|
+
cron_command="cd $service_dir && php artisan schedule:run >> /dev/null 2>&1"
|
|
89
|
+
cron_job="* * * * * $cron_command"
|
|
90
|
+
( ( ( crontab -l || true ) 2> /dev/null ) | grep -v -F "$cron_command" ; echo "$cron_job" ) | crontab -
|
|
94
91
|
|
|
95
92
|
# service discovery
|
|
96
93
|
php $service_dir/artisan glico:healthcare:microservice:discovery
|