octobercms / october

Self-hosted CMS platform based on the Laravel PHP Framework.
https://octobercms.com/
Other
11.01k stars 2.21k forks source link

After composer create-project instalation a lots of bags #3034

Closed KonstantinObuhov closed 7 years ago

KonstantinObuhov commented 7 years ago
Actual behavior

Step 2

Installing october/october (v1.0.420)

laravel/framework suggests installing guzzlehttp/guzzle (Required to use the Mailgun and Mandrill mail drivers and the p ing methods on schedules (~6.0).) laravel/framework suggests installing league/flysystem-aws-s3-v3 (Required to use the Flysystem S3 driver (~1.0).) laravel/framework suggests installing league/flysystem-rackspace (Required to use the Flysystem Rackspace driver (~1.0). ) laravel/framework suggests installing nexmo/client (Required to use the Nexmo transport (~1.0).) laravel/framework suggests installing pda/pheanstalk (Required to use the beanstalk queue driver (~3.0).) laravel/framework suggests installing predis/predis (Required to use the redis cache and queue drivers (~1.0).) laravel/framework suggests installing pusher/pusher-php-server (Required to use the Pusher broadcast driver (~2.0).) laravel/framework suggests installing symfony/dom-crawler (Required to use most of the crawler integration testing tools (~3.3).) laravel/framework suggests installing symfony/psr-http-message-bridge (Required to psr7 bridging features (0.2.).) kriswallsmith/assetic suggests installing leafo/lessphp (Assetic provides the integration with the lessphp LESS compiler ) kriswallsmith/assetic suggests installing ptachoire/cssembed (Assetic provides the integration with phpcssembed to embed data uris) kriswallsmith/assetic suggests installing leafo/scssphp-compass (Assetic provides the integration with the SCSS compass plugin) kriswallsmith/assetic suggests installing patchwork/jsqueeze (Assetic provides the integration with the JSqueeze JavaScr ipt compressor) doctrine/cache suggests installing alcaeus/mongo-php-adapter (Required to use legacy MongoDB driver) sebastian/global-state suggests installing ext-uopz () phpunit/php-code-coverage suggests installing ext-xdebug (^2.5.1) phpunit/phpunit suggests installing phpunit/php-invoker (~1.1) phpunit/phpunit suggests installing ext-xdebug (*) Writing lock file Generating autoload files Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 0 installs, 0 updates, 0 removals Generating autoload files

Here bug 1

php artisan october:util set build ** You were kicked from #october by Ex: (SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using passwo rd: NO) (SQL: select from system_parameters where namespace = system and group = project and item = id limit 1 )) Ping? Pong! Ping? Pong!

php artisan october:util set build ** You were kicked from #october by Ex: (SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using passwo rd: NO) (SQL: select from system_parameters where namespace = system and group = project and item = id limit 1 )) Ping? Pong! Ping? Pong! php artisan key:generate Command Cancelled!

Step 3

Bug 2

PHP Fatal error: Interface 'Illuminate\View\Engines\EngineInterface' not found in /home/vagrant/Code/testoct/modules/system/twig/Engine.php on line 12

Ок I fixed it with this way https://github.com/octobercms/october/blob/develop/modules/system/twig/Engine.php

Step 4

Bug 3 wrong build set

*** October sets build: 419

Ping? Pong!

Ping? Pong!

Reproduce steps

1) Create new homestead site 2) vagrant@homestead:~/Code/testoct$ composer create-project october/october . 3) php artisan october:install 4) php artisan october:util set build

October build

420

daftspunk commented 7 years ago

Wasn't this fixed in 98bc0c097782bd76db90a09104b1ec57bad90d20?

daftspunk commented 7 years ago

First issue, your database is rejecting your credentials.

KonstantinObuhov commented 7 years ago

I guess source code has not updated. I've reproduced bug 2 today.

KonstantinObuhov commented 7 years ago

How can I set database before run composer create-project?

daftspunk commented 7 years ago

Looks like you may be right, the source file has not updated: https://github.com/octoberrain/system/blob/develop/twig/Engine.php

edit: Fixed now, update pushed manually.

daftspunk commented 7 years ago

How can I set database before run composer create-project?

I didn't think this code would run for create project... damn. There is no way to set it, perhaps we need the script to fail silently instead.

KonstantinObuhov commented 7 years ago

I confirm that 1,2,3 was fixed. I tried to set correct build number with command php artisan october:util set build but API return 419 instead 420 what may be wrong?

LukeTowers commented 7 years ago

@daftspunk fixed that issue in https://github.com/octobercms/october/commit/cf6ca02886423101b8ca4b3cd7a4637f5a553ea6.

@KonstantinObuhov The build number is pulled from the gateway, it merely reports the latest stable build number. I don't think (could be wrong though) that the command currently supports correctly setting the build number for develop versions of October.

KonstantinObuhov commented 7 years ago

Thx I get it. Issue above had me confused.