zfcampus / zf-apigility-skeleton

BSD 3-Clause "New" or "Revised" License
445 stars 123 forks source link

fresh install, unable to disable developpement-mode #155

Open mickaelmonsieur opened 7 years ago

mickaelmonsieur commented 7 years ago

Hi,

I installed the current version of apigility and can not disable the development mode:

` web2@vps104:/var/www/api.xx.net/web$ curl -sS https://apigility.org/install | php Download Apigility ..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... Install Apigility Installation complete. Running PHP internal web server. Open your browser to http://localhost:8888, Ctrl-C to stop it. ^C web2@vps104:/var/www/api.xx.net/web# ./vendor/bin/zf-development-mode disable bash: ./vendor/bin/zf-development-mode: Permission non accordée (EN: Forbidden) web2@vps104:/var/www/api.xx.net/web# chmod +x ./vendor/bin/zf-development-mode web2@vps104:/var/www/api.xx.net/web$ ./vendor/bin/zf-development-mode disable Cannot locate autoloader; please run "composer install" web2@vps104:/var/www/api.xx.net/web$ composer install Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Nothing to install or update Generating autoload files web2@vps104:/var/www/api.xx.net/web$ ./vendor/bin/zf-development-mode disable Cannot locate autoloader; please run "composer install" web2@vps104:/var/www/api.xx.net/web$ composer -v


/ __/_ __ _ ____ / / / \/ ` \/ \/ \/ / _ \/ / / // // / / / / / / // / // ( ) / / __/__// // // ./__/__/\// // Composer version 1.3.2 2017-01-27 18:23:41 `

michalbundyra commented 7 years ago

@mickaelmonsieur If you need solution for now I can suggest just to remove whole vendor directory and run composer update (or composer install) again. Then development mode should work as expected.

I've investigated it, and for me it seems to be wrong zip package with apigility-skeleton 1.4.1. We will try to resolve it somehow :) Thanks for reporting the issue!

mickaelmonsieur commented 7 years ago

Hi @webimpress, Thanks for the solution!

I confirm:

`web2@vps104:/var/www/api.xx.net/web$ mv vendor/ vendor_old web2@vps104:/var/www/api.xx.net/web$ composer update Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 61 installs, 0 updates, 0 removals

mickaelmonsieur commented 7 years ago

Off topic: I also think that github has a problem with the code <> tag ...

weierophinney commented 4 years ago

This repository has been closed and moved to laminas-api-tools/api-tools-skeleton; a new issue has been opened at https://github.com/laminas-api-tools/api-tools-skeleton/issues/7.