kenjis / codeigniter-composer-installer

Installs the offical CodeIgniter 3 with secure folder structure via Composer
MIT License
377 stars 118 forks source link

CI4 Composer postInstall Error #36

Closed enlivenapp closed 6 years ago

enlivenapp commented 6 years ago

Hey Kenji,

TLDR;

vendor/codeigniter4/framework/rewrite.php and vendor/codeigniter4/framework/serve appear to be missing from the codeigniter download causing your installer to throw errors.

So, I used your installer just now and it looks like there's some changes in CI4 that's causing installation errors with your postInstall() script.

> Kenjis\CodeIgniter\Installer::postInstall
Script Kenjis\CodeIgniter\Installer::postInstall handling the post-create-project-cmd event terminated with an exception                                                                                                   
[ErrorException]                                                                                   
 copy(vendor/codeigniter4/framework/rewrite.php): failed to open stream: No such file or directory  

I'm unsure why it's not throwing an exception for serve as well as that seems to not be in vendor/codeigniter4/framework/ either.

kenjis commented 6 years ago

@enlivenapp Thank you for your reporting. I'm tring to fix the problem.

kenjis commented 6 years ago

Now it seems works.

$ composer create-project kenjis/codeigniter-composer-installer:4.x-dev codeigniter4
$ cd codeigniter4/
$ bin/server.sh

screenshot_2018-07-21 welcome to codeigniter

enlivenapp commented 6 years ago

weird. I did just try it on my local machine and it worked fine.

Thanks for looking at it.