D
D
Dmitry the Great2017-06-03 21:02:18
Yii
Dmitry the Great, 2017-06-03 21:02:18

Yii2 how to connect my openserver project?

Hello. There is a Yii2 project in the repository. You need to transfer to the local opeserver. Yii2 installed. Question: what needs to be done to connect the project from the repository to this installed framework on the local server. Thanks in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Timofeev, 2017-06-04
@webinar

Add it to composer.json (it is at the root level with the vendor folder), run it in the console, composer updatego to make coffee, smoke, come back and everything will be done.
Nuance. All this is possible if the developer has made sure that your project is installed via composer. Otherwise handles ctrl+c and ctrl+v. Well, after the transfer, it will probably be necessary to tweak the config + create a database. Again, if everything is right, we have migration files and they can be run from the console. Else following the php.

M
Maxim Fedorov, 2017-06-04
@qonand

1. Clone the repository to your local area to the desired openserver folder
2. Run composer update in the loaded project
3. Write the data in the config (for example, to the database, etc.)
4. Perform, if necessary, migrate to the database

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question