douyin9987 2017-07-16 19:44
浏览 95

Google cloud dev_appserver.py无法在本地托管laravel项目

I'm running Laravel 5.4 project, and hosted under google cloud project. In order to test the same I have used dev_appserver.py app.yaml --runtime=php55 it initiates the program but it throws the error displayed

Warning: require(/Users/Avi/Documents/.../website/PLACEHOLDER): failed to open stream: No such file or directory in /Users/Avi/Downloads/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/php/setup.php on line 147

Fatal error: require(): Failed opening required '/Users/Avi/Documents/.../website/PLACEHOLDER' (include_path='.:/Users/Avi/Documents/.../website:/Users/Avi/Downloads/google-cloud-sdk/platform/google_appengine/php/sdk') in /Users/Avi/Downloads/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/php/setup.php on line 147

enter image description here

App.yaml

  runtime: custom
env: flex

runtime_config:
  document_root: public

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

env_variables:
  # Put production environment variables here.
  APP_LOG: errorlog
  APP_KEY: base64:...
  STORAGE_DIR: /tmp
  CACHE_DRIVER: file
  SESSION_DRIVER: file

I'm not able to figure out what's "PLAEHOLDER" and how to resolve the error so that the following laravel project can be hosted locally for development phase.

TIA

  • 写回答

2条回答 默认 最新

  • dongmu3457 2017-08-24 03:15
    关注

    I encountered the same error with some config settings I used.

    my app.yaml file worked with php runtime:

    runtime: php
    env: flex
    
    runtime_config:
      document_root: public
    
    # Ensure we skip ".env", which is only for local development
    skip_files:
      - .env
    
    env_variables:
      # Put production environment variables here.
      APP_LOG: errorlog
      APP_KEY: your_key
      STORAGE_DIR: /tmp
    

    I couldn't get the standard environment to work with php, if anyone can, show us how :)

    评论

报告相同问题?

悬赏问题

  • ¥15 linux驱动,linux应用,多线程
  • ¥20 我要一个分身加定位两个功能的安卓app
  • ¥15 基于FOC驱动器,如何实现卡丁车下坡无阻力的遛坡的效果
  • ¥15 IAR程序莫名变量多重定义
  • ¥15 (标签-UDP|关键词-client)
  • ¥15 关于库卡officelite无法与虚拟机通讯的问题
  • ¥15 目标检测项目无法读取视频
  • ¥15 GEO datasets中基因芯片数据仅仅提供了normalized signal如何进行差异分析
  • ¥100 求采集电商背景音乐的方法
  • ¥15 数学建模竞赛求指导帮助