Coder Social home page Coder Social logo

heroku-buildpack-php's Issues

Executing post-install-cmd commands from composer.json

The default composer.json provided by laravel has the following scripts:

"scripts": {
        "post-install-cmd": [
            "php artisan optimize"
        ],
        "pre-update-cmd": [
            "php artisan clear-compiled"
        ],
        "post-update-cmd": [
            "php artisan optimize"
        ],
        "post-create-project-cmd": [
            "php artisan key:generate"
        ]
    },

However, php is not available, thus the push fails. I tried using $BUILD_DIR/bin/php, since that's what you use in the compile script to execute composer, however apparently $BUILD_DIR is empty when composer executes these functions because I receive the following error messages.

sh: /bin/php: not found
Script $BUILD_DIR/bin/php artisan optimize handling the post-install-cmd event returned with an error

How might I go about modifying the composer.json provided by Laravel so that it can successfully execute artisan commands via the json file?

MongoDB support

I recently installed this build pack and run Laravel 4 on Heroku. I added https://github.com/jenssegers/Laravel-MongoDB/ to my Laravel application and pushed changes to heroku. However I got Class 'MongoClient' not found error.
Is there some way to add MongoClient class to this build pack?

Thanks :)

PHP FTP support

It would be great if we could add in support for the PHP FTP extension

In order to use FTP functions with your PHP configuration, you should add the --enable-ftp option when installing PHP.

gzip: stdin: not in gzip format

Push is rejected:

-----> PHP app detected
Build dir is /tmp/build_ebbce85d-a645-44e4-82a2-f0046069479b
-----> Extracting Apache 2.4.9 PHP 5.5.11 build 2.0-rc2
-----> from http://vulcan-wlian.herokuapp.com/output/95ee1f8b-46fa-4ef7-a99f-92d6e03ed8d2

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Exiting with failure status due to previous errors

 !     Push rejected, failed to compile PHP app```

Permission denied

[core:error] pid 46:tid 139813576832768Permission denied: [client 172.17.42.1:44701] AH00035: access to /php-cgi/index.php denied (filesystem path '/app/apache/cgi-bin') because search permissions are missing on a component of the path

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.