S
S
Sergey2016-08-30 22:37:17
Yii
Sergey, 2016-08-30 22:37:17

Question about yii migration?

There is a test task. I completed it, it's up to the small thing - to send the files.
Here is an excerpt from the TO:

You need to send an uninitialized application, without the vendor folder and other extra files and folders, you can link to bitbucket, github or put it on any file storage.

Those. do i need to send only model, view, controller folders, database dump and that's it?
Those. directly the files where my code is, not the framework code, right?
The application must be deployed on a configured server to a working state with composer update commands; init; yii migrate;

And with this I have questions. I slightly changed the framework code, namely the Users model, to work not with an array of users, but with a database. This is problem?
How do I "assemble" this to send to be deployed on someone else's configured (I don't know how) server?
What do I need to read to complete these points?
In git, I can push changes, but here, it seems, the task is deeper.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2016-08-30
@butteff


Those. do i need to send only model, view, controller folders, database dump and that's it?
Those. directly the files where my code is, not the framework code, right?
You need to send all the files used by the application that cannot be downloaded through the composer. Which folders to send depends on the structure of your source code. For example, for the basic structure (one of the standard ones) these are the assets, commands, config, controllers, models, views, web folders. It is better not to send a database dump, but use migration mechanisms for these purposes
And with this I have questions. I slightly changed the framework code, namely the Users model, to work not with an array of users, but with a database. This is problem?
Models are not at the framework level, they are at the application level. This is your code. The standard application template simply contains code examples, nothing more. The User model is just a sample code.
How do I "assemble" this to send to be deployed on someone else's configured (I don't know how) server?
Yes, here, in principle, everything was described in the task itself:
1. Leave only the application code, delete the vendor folder, etc.
2. To make a DB expansion through migrations In
principle - that's it.
All this information is contained in the documentation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question