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"