Answer the question
In order to leave comments, you need to log in
How to submit a Yii2 project to production?
In general, a subject.
I decided to try it in a new Yii2 project... I write everything in my local repository based on Yii 2 Basic Application Template .
By default, everything is in development mode (composer installs add-ons from require-dev, the YII_ENV_DEV constant is defined in php ...)
Actually, two questions: how to make the first migration and how to properly publish all this stuff on the production server (everything after git clone )?
As for the first migration, I manually designed all the tables, now we need to turn it into a Yii2 migration file.
Thank you.
Answer the question
In order to leave comments, you need to log in
Well, for example, I never make any changes to the database with my hands. Everything, starting from the creation of the first table in the database, I do only through migrations.
In your case, you can make a sql-dump, and pour it in at the first deployment before starting the migrations.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question