【问题标题】:Fortrabbit deployment error with githubFortrabbit 与 github 的部署错误
【发布时间】:2015-02-08 01:41:57
【问题描述】:

我正在尝试在 fortrabbit 上部署一个小应用程序,但是当我在控制台中查看时,我遇到了错误:

Pushing to user@repository.git
remote: Step1: Updating repository        
remote:  -> OK        
remote:          
remote: Step2: Deploying (strategy: no delete, excludes: no)        
remote:  -> OK        
remote:          
remote: Step3: Composer Hook        
remote:  -> Triggering install - get a coffee        
remote:    -> Installing way/form [dev-master 25d0667]        
remote:    -> Installing way/form [dev-master 25d0667]        
remote:  ! Composer threw 'RuntimeException'        
remote:  !     Failed to execute git clone --no-checkout 'git@github.com:JeffreyWay/Laravel-FormField.git' '/var/www/web/application/htdocs/vendor/way/form' && cd '/var/www/web/application/htdocs/vendor/way/form' && git remote add composer 'git@github.com:JeffreyWay/Laravel-FormField.git' && git fetch composer          
remote:  !   ~~~FAIL~~~        
remote: Step4: Executing post-deploy script        
remote:  ~ PHP Warning:  require(/var/www/web/application/htdocs/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/web/application/htdocs/bootstrap/autoload.php on line 17        
remote:  ~ PHP Fatal error:  require(): Failed opening required '/var/www/web/application/htdocs/bootstrap/../vendor/autoload.php' (include_path='.:/opt/php/5.4/share') in /var/www/web/application/htdocs/bootstrap/autoload.php on line 17        
remote:  ~         
remote: !! FAIL !!        
remote: !! Script exited with error state        
remote: !! FAIL !!        
remote: > All Done <        
To git@git1.eu1.frbit.com:repository.git
 = [up to date]      production -> production
   2e5a195..4c9ddcc  master -> master
updating local tracking ref 'refs/remotes/production/master'

你们知道我为什么会出现 github 错误吗? 非常感谢你的帮助。

托马

【问题讨论】:

  • 尽量不要创建作曲家触发器。 laravel 表单包好像有问题
  • 嘿,如果我不触发作曲家,那么我在第 4 步仍然有错误,因为作曲家没有加载所有要求:s
  • 尝试 ssh 并在那里 fux
  • 我们有同样的想法 :) 刚刚回答了 :)

标签: laravel github deployment composer-php fortrabbit


【解决方案1】:

好的,找到了,

我已经通过 SSH 连接到 fortrabbit 并尝试在那里安装 composer。 这让我可以添加我的 github 凭据并克隆缺少的供应商:

13:23:51 user@fortrabbit:~/htdocs$ composer install
Warning: This development build of composer is over 30 days old. It is recommended to update it by running "/usr/bin/composer self-update" to get the latest version.
Loading composer repositories with package information
Installing dependencies (including require-dev)
  - Installing way/form (dev-master 25d0667)
    Downloading: connection...    Failed to download way/form from dist: The "https://api.github.com/repos/JeffreyWay/Laravel-FormField/zipball/25d06676a75f05db7cc10399e72ce13c922047ae" file could not be downloaded (HTTP/1.1 404 Not Found)
    Now trying to download from source
  - Installing way/form (dev-master 25d0667)
    Cloning 25d06676a75f05db7cc10399e72ce13c922047ae
The authenticity of host 'github.com (192.30.252.131)' can't be established.
RSA key fingerprint is {fingerprint}.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos
The credentials will be swapped for an OAuth token stored in /var/www/web/dir/.composer/auth.json, your password will not be stored
To revoke access to this token you can visit https://github.com/settings/applications
Username: myusername
Password:
Token successfully created

  - Installing guzzle/guzzle (v3.9.2)
    Downloading: 100%

  - Installing way/generators (2.6.1)
    Downloading: 100%

Writing lock file
Generating autoload files
Generating optimized class loader
Compiling common classes
Compiling views

【讨论】:

    猜你喜欢
    • 2023-04-04
    • 1970-01-01
    • 2017-11-07
    • 2021-11-26
    • 2016-07-21
    • 1970-01-01
    • 1970-01-01
    • 2021-08-11
    • 2021-05-10
    相关资源
    最近更新 更多