2014-06-30 41 views
0

我想把我的應用在Symfony 2 PHP中寫入到heroku服務器。我使用Ubuntu 14.04。當我推我的應用程序時,我看到:將symfony 2應用推送到heroku,由遠程主機關閉

-----> PHP app detected 

!  WARNING: Your composer.json requires an unknown PHP version. 
     Defaulting to PHP 5.5.14; install may fail! 
     See https://devcenter.heroku.com/categories/php 

-----> Setting up runtime environment... 
     - PHP 5.5.14 
     - Apache 2.4.9 
     - Nginx 1.4.6 
-----> Installing PHP extensions: 
     - opcache (automatic; bundled, using 'ext-opcache.ini') 
-----> Installing dependencies... 
     Composer version 745dcbce3317f7119575c39cef2cb601f9c5ffcf 2014-06-29 16:49:45 
Connection to 10.179.144.249 closed by remote host. 
, done. 
error: did not receive remote status 

也許這是我的網絡提供商故障?

UPDATE 我有omposer.lock在我的項目目錄,我的composer.json是:

{ 
    "name": "symfony/framework-standard-edition", 
    "license": "MIT", 
    "type": "project", 
    "description": "The \"Symfony Standard Edition\" distribution", 
    "autoload": { 
     "psr-0": { "": "src/" } 
    }, 
    "require": { 
     "php": ">=5.3.3", 
     "symfony/symfony": "~2.4", 
     "doctrine/orm": "~2.2,>=2.2.3", 
     "doctrine/doctrine-bundle": "~1.2", 
     "twig/extensions": "~1.0", 
     "symfony/assetic-bundle": "~2.3", 
     "symfony/swiftmailer-bundle": "~2.3", 
     "symfony/monolog-bundle": "~2.4", 
     "sensio/distribution-bundle": "~2.3", 
     "sensio/framework-extra-bundle": "~3.0", 
     "sensio/generator-bundle": "~2.3", 
     "incenteev/composer-parameter-handler": "~2.0", 
     "dvelopment/firephp-bundle": "dev-master", 
     "symfony/serializer": "2.5.*@dev", 
     "liip/imagine-bundle": "dev-master", 
     "luxifer/doctrine-functions": "dev-master" 
    }, 
    "scripts": { 
     "post-install-cmd": [ 
      "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" 
     ], 
     "post-update-cmd": [ 
      "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" 
     ] 
    }, 
    "config": { 
     "bin-dir": "bin" 
    }, 
    "extra": { 
     "symfony-app-dir": "app", 
     "symfony-web-dir": "web", 
     "symfony-assets-install": "symlink", 
     "incenteev-parameters": { 
      "file": "app/config/parameters.yml" 
     }, 
     "branch-alias": { 
      "dev-master": "2.4-dev" 
     } 
    } 
} 
+0

以及您在composer.json文件中需要什麼版本的PHP? – cmorrissey

+0

發佈你的composer.json,你有沒有composer.lock文件? –

+0

@SeanKeane我更新了我的問題 –

回答

0

您指定一個PHP版本,它們不支持

支持的版本 PHP 5.5.11 5.5.12 5.5.13 5.5.14(默認)

https://devcenter.heroku.com/articles/php-support

修改您的composer.json並將其更改爲〜5.5.11

這也可能有助於你在未來:像您的ISP關閉

https://devcenter.heroku.com/articles/getting-started-with-symfony2

+0

這不是問題,警告是假的。 5.5.11位於'> = 5.3.3'選擇器的範圍內。開發中心有記錄說這些警告目前可以忽略。 – dzuelke

0

看起來幾秒鐘後的連接。您是否嘗試過幾次運行time git push heroku master以查看它是否在大致相同的時間(「真實」是您應該查看的值)之後始終停止?

相關問題