无法将 OctoberCMS 部署到 Google App Engine (Flex)

优素福易卜拉欣 |

尝试将我的 OctoberCMS+sqlite(基于 Laravel 5.5)部署到谷歌应用引擎时遇到以下问题,这是我的部署错误:

...
Step #1:   - Installing october/backend (v1.0.436): Downloading (100%)
Step #1:   - Installing october/cms (v1.0.436): Downloading (100%)
Step #1:   - Installing october/system (v1.0.436): Downloading (100%)
Step #1: Generating optimized autoload files
...
Step #1: > php artisan cache:clear
Step #1: Cache cleared successfully.
Step #1: > php artisan cache:clear
Step #1: 
Step #1: In Connection.php line 664:
Step #1:                                                                                
Step #1:   could not find driver (SQL: select * from "system_settings" where "item" =   
Step #1:   vojtasvoboda_errorlogger_settings limit 1)                                   
Step #1:                                                                                
Step #1: 
Step #1: In PDOConnection.php line 47:
Step #1:                          
Step #1:   could not find driver  
Step #1:                          
Step #1: 
Step #1: In PDOConnection.php line 43:
Step #1:                          
Step #1:   could not find driver  
Step #1:                          
Step #1: 
Step #1: Script php artisan cache:clear handling the post-install-cmd event returned with error code 1
Step #1: The command '/bin/sh -c /build-scripts/composer.sh' returned a non-zero code: 1
Finished Step #1
ERROR
ERROR: build step 1 "gcr.io/cloud-builders/docker@sha256:5836cd0f940f2f1a912b8fee4c74e5f1a84df92aab557c608a94e171e9df8d46" failed: exit status 1
Step #1: 
------------------------------------------------------------------------------------------------------------------------------------------------------

ERROR: (gcloud.app.deploy) Cloud build failed. Check logs at https://console.cloud.google.com/gcr/builds/23c79228-9500-4c42-8bea-9b8076e30c42?project=1055473064866 Failure status: UNKNOWN: Error Response: [2] Build failed; check build logs for details

这是我的 app.yaml

runtime: php
env: flex

runtime_config:
  document_root: .

# Ensure we skip ".env", which is only for local development
skip_files:
  - .env
  - Dockerfile
  - docker-compose.yml

env_variables:
  # Put production environment variables here.
  APP_LOG: errorlog
  #APP_KEY: LCG9E1xG5FQDMNauR8wWW3GTyB6Tj6Nv
  STORAGE_DIR: /tmp

这是我的数据库:

...
'default' => env('DB_CONNECTION', 'sqlite'),
...

'sqlite' => [
    'driver'   => 'sqlite',
    'database' => env('DB_DATABASE', 'storage/database.sqlite'),
    'prefix'   => '',
],
    ...

我的 GAE 是灵活的环境,它应该能够在那里使用框架和 CMS,但不幸的是这个错误不允许我在这个服务上安装这个基于 Laravel 的 CMS。

对此的任何帮助将不胜感激。谢谢

优素福易卜拉欣 |

我认为 GAE 不支持并发文件操作,因为:

1) SQLite 用 C 编写 2) SQLite 需要本地 I/O,而 App Engine 运行时间不会给你

这里提到:https://www.quora.com/Can-I-use-an-offline-SQLite-file-in-Google-App-Engine-for-Java、 issuetracker.google.com/issues/35895573 和这里在 Google App Engine 上打开 SQLite 数据库

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

无法将EAR部署到Google App Engine 1.9.4

部署到Google App Engine

使用Dockerfile从Google Cloud Build部署到Google App Engine Flex环境

IntelliJ:无法部署到Google App Engine(标准)

将Scala sbt部署到Google App Engine

将Laravel应用部署到Google App Engine

将 Meteor 部署到 Google App Engine 2017

将Django应用程序部署到Google App Engine

将节点应用程序部署到Google App Engine

在本地测试我的 Google App Engine Flex(无需部署)

Python部署到Google App Engine

无法将Java应用程序部署到App Engine

将Spring Boot App部署到Google App Engine-连接到SQL实例(PostgreSQL)的问题

将 Google App Engine 应用部署到 GCP 时出现问题

如何将Apprtc的对撞机部署到Google App Engine中?

将基本的Angular 2应用程序部署到Google App Engine

如何将SpringBoot应用程序部署到Google App Engine?

如何将 Django PostgreSQL 数据库部署到 Google Cloud SQL (App Engine)

将 2 个容器部署到 Google App Engine 柔性环境 Docker

尝试将Node.js项目部署到Google App Engine时出错

将应用程序部署到Google App Engine,并希望启动api和客户端

如何将flask-socketio 应用程序部署到Google Cloud Platform App Engine

将 Nuxt JS SSR 应用程序部署到 Google Cloud App Engine Standard

CLI 400错误部署到Google App Engine

部署到Google App Engine的App的Typescript编译器无法解析非相对路径

Google App Engine flex CORS配置

Google App Engine Flex是否支持Pipfile?

使用Docker在Google App Engine Flex上进行烧瓶应用部署

如何在IntelliJ中将Google App Engine部署从标准更改为Flex