Closed Pikachu54321 closed 4 years ago
看了大佬写的https://github.com/yiisoft/yii2-app-advanced/blob/master/docs/guide-zh-CN/start-installation.md,用init --env=Production --overwrite=All命令初始化成功了。 现在卡$ php yii migrate这步了 E:\GitHub\图书管理系统\library_1>php yii migrate Yii Migration Tool (based on Yii v2.0.15.1)
Total 3 new migrations to be applied: m130524_201442_init m170816_043853_create_book m170816_050148_create_user_metadata
Apply the above migrations? (yes|no) [no]: 命令行自动就选择no。
这两步也过了,命令前加了个echo y|,就好使了,不到为啥,命令行自己就给选择了。 $ php yii migrate $ php yii migrate --migrationPath=@yiier/inviteCode/migrations/
大佬部署上Nginx了,做的挺好,就是豆瓣api好像不能用了,太可惜了,我再找找图书管理系统,感谢大佬分享!
PS E:\GitHub\图书管理系统\library> php init Yii Application Initialization Tool v1.0
Which environment do you want the application to be initialized in?
[0] Development [1] Production
Your choice [0-1, or "q" to quit] Quit initialization. PS E:\GitHub\图书管理系统\library> 我是php小白,刚搭建起php。 $ git clone https://github.com/simuhui/library.git $ cd library $ composer install 前面这3步完事了,一运行php init命令就退出,求大佬提点一二,万分感谢!