How can I migrate in a production environment ?

Question

How can I migrate in a production environment ?

I wanna migrate production by using phalcon. but we should not use development tools in production environment.

now I use this command in local environment.

phalcon migration --verbose --action=run

Is there ways of migrating without using phacon-devtools in production environment?



690

I had to install on the prod phalcon-dev-tools =(

You can't - at least not to my knowledge. You could however use a CI system to build, test, deploy the app, and run the migration.

That said, I would personally make sure it required manual approval - but I think that would be the most ideal process. GitLab has worked for me in the past for similar issues. Although I am sure other solutions would work just as well: https://about.gitlab.com/product/continuous-integration/



121

Based on my experience, I can say that you wont do it.