From 4b7414b52aeef6b69b4c679e9d2aef0c11e183f6 Mon Sep 17 00:00:00 2001 From: rakeshSgr Date: Tue, 9 Jan 2024 18:57:06 +0530 Subject: [PATCH] migration step added --- deployment/ansible.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deployment/ansible.yml b/deployment/ansible.yml index c241f5cb..eb0f28d3 100644 --- a/deployment/ansible.yml +++ b/deployment/ansible.yml @@ -61,6 +61,9 @@ - name: Delete release folder shell: rm -rf {{ release_path }} + + - name: Run Migrations + command: "chdir={{current_path}}/src npx sequelize-cli db:migrate" - name: Start pm2 command: "chdir={{current_path}}/src pm2 start app.js -i 2 --name elevate-notification"