@glicogh/healthcare-cdk 0.1.96 → 0.1.97
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.
|
@@ -27,6 +27,10 @@ sudo ln -sf $service_dir/.env $service_dir/dist/api/.env
|
|
|
27
27
|
sudo ln -sf $service_dir/.env $service_dir/src/ws/.env
|
|
28
28
|
sudo ln -sf $service_dir/.env $service_dir/dist/ws/.env
|
|
29
29
|
|
|
30
|
+
# apply schema migrations before starting the new processes
|
|
31
|
+
# (--adopt baselines databases migrated before the runner existed)
|
|
32
|
+
sudo npm run migrate -- --adopt
|
|
33
|
+
|
|
30
34
|
# configure supervisor
|
|
31
35
|
sudo sed -i "s|files = .*|files = /etc/supervisor/conf.d/*.conf ${service_dir}/.infra/supervisor/conf.d/*.conf|" /etc/supervisor/supervisord.conf
|
|
32
36
|
|
|
@@ -36,4 +40,4 @@ sudo systemctl restart supervisor
|
|
|
36
40
|
# service discovery
|
|
37
41
|
sudo npm run discovery:api
|
|
38
42
|
|
|
39
|
-
sudo chown -R ubuntu:ubuntu $service_dir
|
|
43
|
+
sudo chown -R ubuntu:ubuntu $service_dir
|
package/package.json
CHANGED
|
@@ -27,6 +27,10 @@ sudo ln -sf $service_dir/.env $service_dir/dist/api/.env
|
|
|
27
27
|
sudo ln -sf $service_dir/.env $service_dir/src/ws/.env
|
|
28
28
|
sudo ln -sf $service_dir/.env $service_dir/dist/ws/.env
|
|
29
29
|
|
|
30
|
+
# apply schema migrations before starting the new processes
|
|
31
|
+
# (--adopt baselines databases migrated before the runner existed)
|
|
32
|
+
sudo npm run migrate -- --adopt
|
|
33
|
+
|
|
30
34
|
# configure supervisor
|
|
31
35
|
sudo sed -i "s|files = .*|files = /etc/supervisor/conf.d/*.conf ${service_dir}/.infra/supervisor/conf.d/*.conf|" /etc/supervisor/supervisord.conf
|
|
32
36
|
|
|
@@ -36,4 +40,4 @@ sudo systemctl restart supervisor
|
|
|
36
40
|
# service discovery
|
|
37
41
|
sudo npm run discovery:api
|
|
38
42
|
|
|
39
|
-
sudo chown -R ubuntu:ubuntu $service_dir
|
|
43
|
+
sudo chown -R ubuntu:ubuntu $service_dir
|