phundament / app

Dockerized Yii2 web application base
http://phundament.com
Other
310 stars 129 forks source link

QUestion about setup.sh #212

Open ely029 opened 7 years ago

ely029 commented 7 years ago

I just want to ask what is the purpose of the setup.sh? it is use for migrating the tables to the database?

ely029 commented 7 years ago

Because I want to use your dockerozed yii design to use in our application. This is what we need exactly. I am asking about the setup.sh file because I want to initialize a database. So that is why I am asking is this the file use to migrate the tables? :)

schmunk42 commented 7 years ago

You can use a bash script for setting up the application, this still might be required when applications are more complex, but we got rid of this file in phd5 - I strongly recommend to take a look at, since it's much more smaller, but still widely compatible.

We've moved the functionality into an AppCommand which is basically doing the same thing.

Actually we got rid of all bash-scripts in phd5-app. To simplify development, setup and CI we now run either make (see example) or native commands, like docker-compose run php yii app/setup.

schmunk42 commented 7 years ago

Related: https://github.com/yiisoft/yii2/pull/13359