2017-11-06 25 views
0

gitlab-ci (및 고정 점)을 사용하여 프로덕션에 배포 할 때 composer 1.5.2이 자동로드 ScriptHandler으로 보이지 않습니다.
참고 : composer.lock이 최신입니다. 여기 Symfony 3.3 ScriptHandler가 자동으로 마운트되지 않습니다

는 카피 스트라 노 에러이다

01 Generating optimized autoload files 
01 > Incenteev\ParameterHandler\ScriptHandler::buildParameters 
01 Updating the "app/config/parameters.yml" file 
01 Class Sensio\Bundle\DistributionBundle\Composer\ScriptHandler is not autoloadable, can not call symfony-scripts script 
01 Class Sensio\Bundle\DistributionBundle\Composer\ScriptHandler is not autoloadable, can not call symfony-scripts script 
01 Class Sensio\Bundle\DistributionBundle\Composer\ScriptHandler is not autoloadable, can not call symfony-scripts script 
01 Class Sensio\Bundle\DistributionBundle\Composer\ScriptHandler is not autoLoadable, can not call symfony-scripts script 
01 Class Sensio\Bundle\DistributionBundle\Composer\ScriptHandler is not autoloadable, can not call symfony-scripts script 
01 [email protected] 3.002s 
00:07 npm:install 
01 npm install --production --silent --no-progress 
01 added 3 packages in 0.619s 
01 [email protected] 2.613s 
00:10 deploy:set_permissions:check 
ERROR Cannot change permissions: /home/app/releases/20171106125307/var/logs is not a file or directory (Backtrace restricted to imported tasks) 
cap aborted! 
SSHKit::Runner::ExecuteError: Exception while executing as [email protected]: Cannot change permissions: /home/app/releases/20171106125307/var/logs is not a file or directory 

var/logs 디렉토리가 생성되어 배포 직후 장애가되지 않는다.

composer.json : 실종 뭔가

{ 
    "name": "MyApp", 
    "description": "MyApp description", 
    "license": "proprietary", 
    "type": "project", 
    "autoload": { 
     "psr-4": { 
      "": "src/" 
     }, 
     "classmap": [ 
      "app/AppKernel.php", 
      "app/AppCache.php" 
     ] 
    }, 
    "autoload-dev": { 
     "psr-4": { 
      "Tests\\": "tests/" 
     } 
    }, 
    "require": { 
     "php": ">=7.0", 
     "ext-mbstring": "*", 
     "ext-soap": "*", 
     "symfony/symfony": "^3.3", 
     "doctrine/orm": "^2.5", 
     "doctrine/doctrine-bundle": "^1.6", 
     "symfony/swiftmailer-bundle": "^2.3", 
     "symfony/monolog-bundle": "^3.0", 
     "symfony/polyfill-apcu": "^1.0", 
     "sensio/framework-extra-bundle": "^3.0.2", 
     "incenteev/composer-parameter-handler": "^2.0", 
     "symfony/assetic-bundle": "^2.8", 
     "nesbot/carbon": "^1.22", 
     "symfony/workflow": "^3.3", 
     "twig/extensions": "^1.4", 
     "stof/doctrine-extensions-bundle": "^1.2", 
     "csa/guzzle-bundle": "^2.0", 
     "symfony/dotenv": "^3.3", 
     "sensio/distribution-bundle": "^5.0", 
     "beberlei/assert": "^2.7" 
    }, 
    "require-dev": { 
     "sensio/generator-bundle": "^3.0", 
     "symfony/phpunit-bridge": "^3.0", 
     "doctrine/doctrine-fixtures-bundle": "^2.3", 
     "fzaninotto/faker": "^1.6", 
     "friendsofphp/php-cs-fixer": "^2.6", 
     "phpunit/phpunit": "^5.6", 
     "jakub-onderka/php-parallel-lint": "^0.9.2", 
     "edgedesign/phpqa": "^1.16" 
    }, 
    "scripts": { 
     "symfony-scripts": [ 
      "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile", 
      "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget" 
     ], 
     "post-install-cmd": [ 
      "@symfony-scripts" 
     ], 
     "post-update-cmd": [ 
      "@symfony-scripts" 
     ] 
    }, 
    "extra": { 
     "symfony-app-dir": "app", 
     "symfony-bin-dir": "bin", 
     "symfony-var-dir": "var", 
     "symfony-web-dir": "web", 
     "symfony-tests-dir": "tests", 
     "symfony-assets-install": "relative", 
     "incenteev-parameters": { 
      "file": "app/config/parameters.yml" 
     }, 
     "branch-alias": null 
    } 
} 

있습니까?

+0

작곡가 버전은 무엇입니까? – ivoba

+0

1.2.2, 이상한데, 나는 apt (데비안 9)로 업데이트 할 수 없다. –

+0

'1.5.2' (현재)와 같은 오류 –

답변

0

gitlab-cicapistrano 사이에 혼란이있었습니다. 나는 capistrano가 master를 가져 오는 동안 (bugged와 함께) 지점을 개발하여 프로덕션에 배치하려고 시도했습니다. ...

위의 구성이 작동합니다.