@glicogh/healthcare-cdk 0.1.23 → 0.1.25

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,15 @@ 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
+ crontab -l > tmpCronFile
89
+ #echo new cron into cron file
90
+ echo "* * * * * cd $service_dir && php artisan schedule:run >> /dev/null 2>&1" >> tmpCronFile
91
+ #install new cron file
92
+ crontab tmpCronFile
93
+ rm tmpCronFile
94
+
95
+ # service discovery
87
96
  php $service_dir/artisan glico:healthcare:microservice:discovery
88
97
 
89
98
  sudo chown -R ubuntu:ubuntu $service_dir
@@ -0,0 +1,11 @@
1
+ sudo apt install supervisor -yq
2
+
3
+ cd ~
4
+ curl -fsSL https://deb.nodesource.com/setup_current.x -o nodesource_setup.sh
5
+ sudo -E bash nodesource_setup.sh
6
+ sudo apt install nodejs -yq
7
+
8
+ cd $service_dir/node-scripts
9
+
10
+ # build
11
+ sudo npm i
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glicogh/healthcare-cdk",
3
- "version": "0.1.23",
3
+ "version": "0.1.25",
4
4
  "description": "CDK automations",
5
5
  "bin": {
6
6
  "cdk": "bin/cdk.js"
@@ -84,6 +84,15 @@ 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
+ crontab -l > tmpCronFile
89
+ #echo new cron into cron file
90
+ echo "* * * * * cd $service_dir && php artisan schedule:run >> /dev/null 2>&1" >> tmpCronFile
91
+ #install new cron file
92
+ crontab tmpCronFile
93
+ rm tmpCronFile
94
+
95
+ # service discovery
87
96
  php $service_dir/artisan glico:healthcare:microservice:discovery
88
97
 
89
98
  sudo chown -R ubuntu:ubuntu $service_dir
@@ -0,0 +1,11 @@
1
+ sudo apt install supervisor -yq
2
+
3
+ cd ~
4
+ curl -fsSL https://deb.nodesource.com/setup_current.x -o nodesource_setup.sh
5
+ sudo -E bash nodesource_setup.sh
6
+ sudo apt install nodejs -yq
7
+
8
+ cd $service_dir/node-scripts
9
+
10
+ # build
11
+ sudo npm i