Deploy a Laravel App on Cloudfoundry -


i trying deploy laravel based web application swisscom application cloud. therefor use provided php buildpack. docs shows example lumen, assuming should work laravel well.

used command: cf push app-name -m 512m -n app-name

while deploying these 2 errors:

a)

the extension 'fpm' not provided buildpack. extension 'tokenizer' not provided buildpack. extension 'dom' not provided buildpack. extension 'json' not provided buildpack. extension 'pcre' not provided buildpack. extension 'reflection' not provided buildpack. extension 'spl' not provided buildpack. 

b)

generating autoload files > illuminate\foundation\composerscripts::postinstall > php artisan optimize php warning:  require(/tmp/app/bootstrap/../vendor/autoload.php):failed open stream: no such file or directory in /tmp/app/bootstrap/autoload.php on line 17 php fatal error:  require(): failed opening required '/tmp/app/bootstrap/../vendor/autoload.php'(include_path='../lib/php:/tmp/app/lib') in /tmp/app/bootstrap/autoload.php on line 17 script php artisan optimize handling post-install-cmd event returned error 

my options.json file:

{    "webdir": "public",    "php_version": "{php_70_latest}",    "php_extensions": [ "bz2", "zlib", "openssl", "fpm", "tokenizer", "curl", "mcrypt", "mbstring", "pdo", "pdo_mysql"] } 

thank help!

a => buildpack related , doesn't break anything. it's information these extension aren't available yet.

b => artisan isn't available @ staging time "optimize" command triggering in composer scripts (composer.json) won't work. didn't found proper solution yet, don't this.

your options.json need 1 more thing => "libdir": "" install composer vendor directory in app root.

best regards dave


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -