Comments (9)
This might be applicable to the issue...I'm using an empty composer.json file created using the instructions in the README:
echo '{}' > composer.json
The composer.lock file is therefore empty which may be why it's not getting handled properly
from heroku-buildpack-php.
Is your composer.lock
completely empty, or does it contain any whitespace, or {}
or similar? What operating system is this on?
Was the file generated by Composer, or through some other mechanism, or did you create it by hand?
from heroku-buildpack-php.
If you remove it and run composer update
, does it get created again?
from heroku-buildpack-php.
Completely empty. It looks like composer doesn't generate a composer.lock file when the composer.json is empty.
It's been a while since I set up the project but I probably just did a touch composer.lock
so it was there and would be detected as a php app.
from heroku-buildpack-php.
OSX 10.9.3
Composer version e77435cd0c984e2031d915a6b42648e7b284dd5c 2014-07-02 15:44:54
from heroku-buildpack-php.
FWIW, if I do:
echo '{}' > composer.lock
...then it will deploy properly.
So, not sure if this is necessarily a bug after all, but v21 didn't complain about an empty composer.lock
from heroku-buildpack-php.
You don't need a composer.lock
at all. If you run composer update
, Composer will remove it, as your composer.json
specifies no package dependencies and thus needs no lock file.
from heroku-buildpack-php.
Ah, well that's even better 👍
I've been so used to using another buildpack before you added official support I assumed the composer.lock was required. My apologies for all the back and forth.
from heroku-buildpack-php.
Alright, should be all fixed now (5bfe3a5, already released), just in case you ever run into it again. Thanks for the heads-up!
P.S. you can do heroku config:unset BUILDPACK_URL
as it'll auto-detect PHP projects and use the official buildpack.
from heroku-buildpack-php.
Related Issues (20)
- Prevent error "newrelic.transaction_tracer.enabled must be enabled in order to use distributed tracing" HOT 2
- Composer fails to run on linux-arm64 os HOT 6
- NGINX build with stub status module --with-http_stub_status_module HOT 1
- PHP 8.2 support HOT 1
- PHP 8.2.2 upgrade HOT 2
- v232 is not published in packagist.org HOT 7
- Composer hash changed so "Installer corrupt"?
- Warning: The "HEROKU_" namespace is protected and shouldn't be used. HOT 1
- Allowing skipping the installation of the webserver that is not used HOT 1
- PHP 8.3 support HOT 2
- Configure the AMQP CA path automatically HOT 1
- ext-newrelic segmentation fault, breaks site HOT 3
- Supporting Excimer
- Add support for FrankenPHP HOT 2
- setting php platform version ignored HOT 1
- PHP-FPM Worker Process Configuration Error, Fractional Worker Count Issue HOT 1
- Add support for ext-parallel HOT 1
- ZTS support
- cgroupsv2 support
- Support ARM64 when using Heroku-24 Docker images HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heroku-buildpack-php.