Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

QUestion about setup.sh #212

Open
ely029 opened this issue Jan 12, 2017 · 3 comments
Open

QUestion about setup.sh #212

ely029 opened this issue Jan 12, 2017 · 3 comments
Labels

Comments

@ely029
Copy link

ely029 commented Jan 12, 2017

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

@ely029
Copy link
Author

ely029 commented Jan 12, 2017

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
Copy link
Member

schmunk42 commented Jan 13, 2017

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
Copy link
Member

Related: yiisoft/yii2#13359

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants