• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating an app.yaml for CI application

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

- 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

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

#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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.