Flynn: my PHP (Laravel) app was detected as Node.js

Created on 23 May 2016  ·  3Comments  ·  Source: flynn/flynn

my root directory

artisan     
composer.json   
config      
gulpfile.js 
phpspec.yml 
public      
resources
storage
app
bootstrap   
composer.lock   
database    
package.json    
phpunit.xml 
readme.md   
server.php  
tests

how can I undo all that and force Flynn to detect it as PHP?

Most helpful comment

It's being detected as Node.JS because of package.json being present in the root.
You can either set the build pack explicitly with this command:
flynn env set BUILDPACK_URL "https://github.com/heroku/heroku-buildpack-php"

Or you could exclude package.json from the slug compilation stage by creating a .slugignore file in the root of your application that contains:
package.json

All 3 comments

It's being detected as Node.JS because of package.json being present in the root.
You can either set the build pack explicitly with this command:
flynn env set BUILDPACK_URL "https://github.com/heroku/heroku-buildpack-php"

Or you could exclude package.json from the slug compilation stage by creating a .slugignore file in the root of your application that contains:
package.json

@josephglanville Okay, but how to install & build npm dependies with composer dependies? My app have an frontend and backend in the same directory and php-buildpack can't works properly. One way to exit, it to fork php-buildpack repository and add these option himself?

If I'll to create .buildpacksfile and add two buildpacks: node and php. It should be install Node dependencies and composer dependencies? Right?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

airways picture airways  ·  4Comments

heldopslippers picture heldopslippers  ·  4Comments

qwyang picture qwyang  ·  3Comments

amingilani picture amingilani  ·  4Comments

onnimonni picture onnimonni  ·  6Comments