@glicogh/healthcare-cdk 0.1.85 → 0.1.86

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.
@@ -55,6 +55,13 @@ sudo rm -rf /etc/nginx/sites-enabled/default /etc/nginx/conf.d/default.conf
55
55
  sudo ln -sf $service_dir/nginx/microservices /etc/nginx/microservices
56
56
  sudo ln -sf $service_dir/nginx/conf.d/microservices.conf /etc/nginx/conf.d/microservices.conf
57
57
 
58
+ # write env to node folder
59
+ sudo echo "DEPLOYED_ENV={{envName}}" >> $configuration_dir/local.env
60
+ sudo echo "HOSTING_PLATFORM=aws" >> $configuration_dir/local.env
61
+ sudo cat $configuration_dir/global-ssm.env >> $service_dir/node/.env
62
+ sudo cat $configuration_dir/service-ssm.env >> $service_dir/node/.env
63
+ sudo cat $configuration_dir/local.env >> $service_dir/node/.env
64
+
58
65
  # start supervisor
59
66
  sudo systemctl restart supervisor
60
67
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glicogh/healthcare-cdk",
3
- "version": "0.1.85",
3
+ "version": "0.1.86",
4
4
  "description": "CDK automations",
5
5
  "bin": {
6
6
  "cdk": "bin/cdk.js"
@@ -55,6 +55,13 @@ sudo rm -rf /etc/nginx/sites-enabled/default /etc/nginx/conf.d/default.conf
55
55
  sudo ln -sf $service_dir/nginx/microservices /etc/nginx/microservices
56
56
  sudo ln -sf $service_dir/nginx/conf.d/microservices.conf /etc/nginx/conf.d/microservices.conf
57
57
 
58
+ # write env to node folder
59
+ sudo echo "DEPLOYED_ENV={{envName}}" >> $configuration_dir/local.env
60
+ sudo echo "HOSTING_PLATFORM=aws" >> $configuration_dir/local.env
61
+ sudo cat $configuration_dir/global-ssm.env >> $service_dir/node/.env
62
+ sudo cat $configuration_dir/service-ssm.env >> $service_dir/node/.env
63
+ sudo cat $configuration_dir/local.env >> $service_dir/node/.env
64
+
58
65
  # start supervisor
59
66
  sudo systemctl restart supervisor
60
67