Answer the question
In order to leave comments, you need to log in
How to run yii2 application?
We threw off the application dump (yii2 advanced) + the database in which the layout needs to be corrected
How to run the finished application locally, provided that there is php + composer. Ran `composer install` - something seems to be installed from .lock file
When you run 'php yii serve' it says Document root .....console/web" does not exist.
All articles in google boil down to how to install everything from scratch, and how to continue the development of a word.
Answer the question
In order to leave comments, you need to log in
Goodnight.
In the console, you need to specify the path to the document root of the project.
For example:
But it is not clear why you need to launch the project this way?
Yes, you also need to run ./init.
https://github.com/yiisoft/yii2-app-advanced/blob/...
Init will create the necessary configs for the local environment and they will need to be tweaked to suit your needs.
Also, you have a db. If it's not sqlite, then 'php serve' is no good. It looks like I'll have to install something extra for local development - xamp, mamp, vagrant or something like that.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question