在heroku中托管laravel 4应用程序

时间:2014-04-05 04:47:00

标签: php git heroku laravel

我已经收到这个错误很长一段时间了。我有一个laravel 4应用程序,我想在heroku中托管。我已经创建了heroku应用程序,现在我正在尝试使用git push heroku master将我的应用程序推送到heroku。以下是结果。

C:\xampp\htdocs\pos>git push heroku master
Fetching repository, done.
Counting objects: 83, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (59/59), done.
Writing objects: 100% (60/60), 342.76 KiB | 69.00 KiB/s, done.
Total 60 (delta 40), reused 0 (delta 0)

-----> Fetching custom git buildpack... done
-----> PHP app detected
Build dir is /tmp/build_5b1c5fb6-fa85-4a48-b2a8-127574aeb681
-----> Extracting Apache 2.4.7 PHP 5.5.9 build 2.0-rc1
-----> from http://vulcan-wlian.herokuapp.com/output/e33fbffa-c4ca-4752-8b1c-9ebc49366a1c
Creating Slug Identifier file with id: d325104734915692ee9e8f4189c08e21
Installing Composer binary
#!/usr/bin/env php
All settings correct for using Composer
Downloading...

Composer successfully installed to: /tmp/build_5b1c5fb6-fa85-4a48-b2a8-127574aeb681/bin/composer.phar
Use it: php bin/composer.phar
Installing Composer dependencies
Loading composer repositories with package information
Installing dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for barryvdh/laravel-migration-generator dev-master -> satisfiable by barryvdh/laravel-migration-generator[dev-master].
    - barryvdh/laravel-migration-generator dev-master requires way/generators 1.x -> no matching package found.
  Problem 2
    - Installation request for zizaco/entrust dev-master -> satisfiable by zizaco/entrust[dev-master].
    - zizaco/confide 2.0.0.b1 requires laravelbook/ardent 1.1.x -> satisfiable by laravelbook/ardent[v1.1.0].
    - zizaco/confide 2.0.0a1 requires laravelbook/ardent 1.1.x -> satisfiable by laravelbook/ardent[v1.1.0].
    - zizaco/confide 2.0.0b4 requires laravelbook/ardent 2.1.x -> satisfiable by laravelbook/ardent[v2.1.0].
    - zizaco/confide 2.0.0b2 requires laravelbook/ardent 2.1.x -> satisfiable by laravelbook/ardent[v2.1.0].
    - zizaco/confide 2.0.0b3 requires laravelbook/ardent 2.1.x -> satisfiable by laravelbook/ardent[v2.1.0].
    - Can only install one of: laravelbook/ardent[v1.1.0, dev-master].
    - Can only install one of: laravelbook/ardent[dev-master, v1.1.0].
    - Can only install one of: laravelbook/ardent[v2.1.0, dev-master].
    - Can only install one of: laravelbook/ardent[dev-master, v2.1.0].
    - zizaco/entrust dev-master requires laravelbook/ardent dev-master -> satisfiable by laravelbook/ardent[dev-master].
    - Conclusion: don't install laravelbook/ardent dev-master
    - Installation request for zizaco/confide 2.0.x -> satisfiable by zizaco/confide[2.0.0.b1, 2.0.0a1, 2.0.0b2, 2.0.0b3, 2.0.0b4].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

 !     Push rejected, failed to compile PHP app

To git@heroku.com:ckpos.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:ckpos.git'

我没有按要求做任何事情,但没有成功,不知道为什么?

1 个答案:

答案 0 :(得分:1)

解决了它。只需切换回较旧的buildpack。 转到您的应用目录,执行git push heroku master,然后输入:

  

heroku config:设置BUILDPACK_URL = git://github.com/winglian/heroku-buildpack-php.git#mpm-event-php55-fpm

很久以前,当我将buildpack网址设置为主分支时,我有这种有趣的感觉。那我应该这样做。无论如何,吸取了教训。

干杯!