@glicogh/healthcare-cdk 0.1.24 → 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.
package/README.md
CHANGED
|
@@ -108,7 +108,7 @@ The following stack on the other hand, are meant to deploy a new set of resource
|
|
|
108
108
|
These are typically microservice stack and will be triggered each time code is merged into the `release` branch of a microservice repo. These stack will not be ran directly in this project, but rather from within each microservice project as a dependency. For example, to deploy the `account` microservice in the UAT environment, you would run the command
|
|
109
109
|
|
|
110
110
|
```
|
|
111
|
-
cdk --profile glicogh-uat --context env=uat --context version=1.0.1 --context service=account deploy
|
|
111
|
+
cdk --profile glicogh-uat --context env=uat --context version=1.0.1 --context build=1234 --context service=account deploy
|
|
112
112
|
```
|
|
113
113
|
|
|
114
114
|
These stack can also be versioned.
|
|
@@ -84,6 +84,12 @@ sudo ln -sf $configuration_dir/supervisor.{{serviceName}}-service-server.conf /e
|
|
|
84
84
|
|
|
85
85
|
sudo systemctl restart supervisor
|
|
86
86
|
|
|
87
|
+
# register cron
|
|
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 -
|
|
91
|
+
|
|
92
|
+
# service discovery
|
|
87
93
|
php $service_dir/artisan glico:healthcare:microservice:discovery
|
|
88
94
|
|
|
89
95
|
sudo chown -R ubuntu:ubuntu $service_dir
|
package/package.json
CHANGED
|
@@ -84,6 +84,12 @@ sudo ln -sf $configuration_dir/supervisor.{{serviceName}}-service-server.conf /e
|
|
|
84
84
|
|
|
85
85
|
sudo systemctl restart supervisor
|
|
86
86
|
|
|
87
|
+
# register cron
|
|
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 -
|
|
91
|
+
|
|
92
|
+
# service discovery
|
|
87
93
|
php $service_dir/artisan glico:healthcare:microservice:discovery
|
|
88
94
|
|
|
89
95
|
sudo chown -R ubuntu:ubuntu $service_dir
|