phundament / app

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

Problem finalizing install #178

Closed carnao closed 9 years ago

carnao commented 9 years ago

Hi i installed version 4 with composer on windows. When executing yii app/setup i get unknown command "app/setup". Is there another method for installing this version applying migration and initialize the app? Thanks!

schmunk42 commented 9 years ago

Maybe a path issue?

What does yii help or yii.bat help say? (also yii help app?)

carnao commented 9 years ago

if I run the instructions above it gives me the correct help info. If i run yii help app i only get these actions: clear-asset create-mysq-db generate-docs setup-admin-user version And also if I run app/version i get this: "Application Version Failed withouth error message: git describe --dirty"

Under dmstr\yii2-app-command\controllers the BaseAppController does not have a setup action and neither under src\commands the AppController . On a previous install (don't know the exact version) under commands\AppController i had setup, setupTest, Update actions..

schmunk42 commented 9 years ago

I think we need to update the docs here, since there's no more app/setup unless you have defined it in your application.

I was only a shorthand anyway for:

./yii app/create-mysql-db
./yii migrate --interactive=0
./yii app/setup-admin-user --interactive=0

see https://github.com/phundament/app/blob/master/src/init.sh

Can you run the commands manually or create an init.bat?

carnao commented 9 years ago

Sorry for the delay.. That's ok I just ran the command manually and all was ok! Thanks!