How to deploy a Yii2 project?

I want to automate the deployment of a Yii2 project on a production server. Therefore, I have few questions. Assuming the production server has just created and does not have any file of my project.

  • Migration. Everything is clear about the team there yii migrate/up, but what if I have an rbac migration that is deploying ./yii migrate/up --migrationPath @yii/rbac. Can I deploy all the migrations that I use in one command?
  • Translations. Am I dumping the translation table and deploying it only by importing an SQL dump, or is there another way?
+4
source share
1 answer

, CI, GitLab Jenkins. Git ( , ).

-, SQL-, rbac .

-, . yii\i18n\PhpMessageSource, . yii\i18n\DbMessageSource, .

:

  • latests Git/

  • (php yii migrate/up)

  • . composer ( )

  • (phpunit)

, :)

+3

All Articles