Welcome Guest, Not a member yet? Register   Sign In
Creating an app.yaml for CI application
#1

(This post was last modified: 05-19-2018, 05:18 AM by richb201.)

I'vs decided that I should get my app up and running on Google Cloud App Engine. To do this I will work in steps. First I will get the application running on my local development server. To do this step I need to create an app.yaml. An app.yaml is a file that describes where calls will be routed to. Here is what I have so far for my app.yaml:

untime: php56
api_version: 1

handlers:
- url: /
  script: Configure.php

- url: /index\.html
  script: Configure.php
  
- url: /subit_backend\.html
  script: Subit_backend.php

- url: /stylesheets
  static_dir: stylesheets

- url: /(.*\.(gif|png|jpg))$
  static_files: static/\1
  upload: static/.*\.(gif|png|jpg)$

- url: /.*
  script: not_found.php

Has anyone had any experience in setting up a CI application to run with an app.yaml? When I try to start up the appserver with dev_appserver.py c:\xampp\htdocs\sub_crud I get an error that I am missing a file called setup. Is this a CI file or is this a appengine required file? This same app runs fine on xampp locally and on my website too.
proof that an old dog can learn new tricks
Reply
#2

(This post was last modified: 05-20-2018, 07:20 AM by richb201.)

I took a look at the error being created on the server. Seems that I can now get the console to open, but I think I need to tell it where to find the index.php file it should run. I did find some  mention of using SCRIPT_FILENAME in the app.yaml

REQUEST_URI: /
#SCRIPT_FILENAME: /path/to/index.php
SCRIPT_FILENAME: /sub_crud/controller/index.php      <<is this correct?
SCRIPT_NAME: /index.php
PHP_SELF: /index.php

I did manage to get the following error in my browser:

No direct script access allowed
proof that an old dog can learn new tricks
Reply




Theme © iAndrew 2016 - Forum software by © MyBB