app.yaml

Index.html/index.php not found in Google CodeLabs app shell

帅比萌擦擦* 提交于 2020-01-07 05:02:31
问题 I was interested on on Google's web app-Shell. I've downloaded it GitHub. But I found that there is no index.html/index.php file in the whole code. All I mainly found, is the licence file, app.yaml file and app.js file. Link to that page, is here. I heard,that I can install the project in my web hosting site, by using terminal. But terminal is not an option for my situation. I've stopped using Firebase, because I must have terminal for it. So, is there any other idea to install the project in

Google App Engine app.yaml match all PHP files and match all HTML files and serve respectively

ⅰ亾dé卋堺 提交于 2020-01-01 19:17:27
问题 I'm using Google App Engine with PHP. I want all HTML files in the folder Client_Pages to be recognized and served as static files, and all the PHP files in the same folder to be recognized and served as script files. Here is what the app.yaml file looks like: application: myappname version: 1 runtime: php api_version: 1 threadsafe: true handlers: - url: / script: index.php - url: /Client_Pages/*.php script: /Client_Pages/*.php - url: /Client_Pages/*.html static_dir: Client_Pages/*.html I

Google App Engine app.yaml PHP scripting parameters

十年热恋 提交于 2019-12-31 02:56:05
问题 In my GAE PHP app.yaml i am trying to do this: application: myapp version: 1 runtime: php api_version: 1 threadsafe: yes handlers: - url: /sitemap.xml static_files: sitemap.xml upload: /sitemap\.xml - url: /MyOneLink script: /myDynamicContent.php?myparam=hardcoded_value_1 - url: /MySecondLink script: /myDynamicContent.php?myparam=hardcoded_value_2 so one can browse http://example.com/MyOneLink and get the result of the dynamic php (which depends of the hardcoded myparam value) the problem is

php google app engine app yaml handler with'?'

为君一笑 提交于 2019-12-25 04:42:27
问题 I have a php page that displays users' profiles. The file called profile_full.php . In order to view each user's profile there is a link like this: profile_full.php?email=1 for user 1 , profile_full.php?email=2 for user 2 etc. I use .htaccess file to cut the url address. Its is the follwoing: # profile requests RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)$ /profile_full.php?email=$1 [L,QSA] So for the url if type /1 get profile page for user 1, if

How to use a different version of PyCrypto in GAE Python

僤鯓⒐⒋嵵緔 提交于 2019-12-25 03:26:11
问题 I downloaded the experimental version of PyCrypto (pycrypto-2.7a1.tar.gz). I have copied the "Crypto" directory (extracted from pycrypto-2.7a1.tar.gz) to my project folder. In app.yaml file: libraries: - name: pycrypto version: 2.7 # latest I get error (at the time of deployment) if I try to give version as 2.7a1 or 2.7 for PyCrypto in app.yaml: appcfg.py: error: Error parsing C:\gaurav\coding\python\x\x\app.yaml: pycrypto version "2.7" is not supported, use one of: "2.3", "2.6" or "latest" (

404 on live Google App Engine, while working on local SDK server

心已入冬 提交于 2019-12-25 00:34:57
问题 I have deployed several PHP apps on GAE standard environment, all working fine. Now I'm deploying a new app, which on the local server provided by the gcloud SDK works as expected (terminal command: dev_appserver.py --log_level=warning app.yaml ). The problem is that when I deploy it to the live GAE service ( gcloud app deploy app.yaml --project myapp ), I get a 404 error message: The page could not be found No web page found for the web address: xxx HTTP ERROR 404 The app.yaml looks like

how to hide .html extension in URL from google app engine (cloud hosting)

拟墨画扇 提交于 2019-12-24 18:47:33
问题 I uploaded my webpage using google app engine and it is working fine. It is a very simple webpage with 6 static files (.html all of them) I need to Remove .html extension from URL. For example: I have www.example.com/contact.html, I want www.example.com/contact My current app.yaml is runtime: php55 api_version: 1 threadsafe: true handlers: - url: / static_files: website/index.html upload: website/index.html - url: / static_dir: website All html files are Inside the "Website" folder, so how

Unable to see image on Google app engine web

非 Y 不嫁゛ 提交于 2019-12-24 12:53:01
问题 I Just want to show image on Google app Engine Website. I am new to Google app engine. I made changes in App.yaml and Main.py app.yaml looks like : application: simplegraph-007 version: 1 runtime: python27 api_version: 1 threadsafe: yes handlers: - url: /favicon\.ico static_files: favicon.ico upload: favicon\.ico - url: /images static_dir: static/images mime_type: image/png - url: .* script: main.app libraries: - name: webapp2 version: "2.5.2" Main.py looks like. import webapp2 class

How to serve static files in AppEngine Standard and nodejs

て烟熏妆下的殇ゞ 提交于 2019-12-24 00:45:34
问题 The documentation says that you simply must update your app.yaml - like you would for any language within AppEngine. It also states later on that for local development, you probably want your server to respond to static requests as well. However, when I update my very simple app.yaml to be as such: runtime: nodejs8 handlers: - url: /apiEndPoint script: auto - url: /.* static_dir: public It seems all requests still end up coming in to my script - which will return a 404 in the prod instance,

What does the RewriteRule in .htaccess convert to in an app.yaml file?

此生再无相见时 提交于 2019-12-23 19:50:49
问题 How do I convert this .htaccess file to an app.yaml file? Here is the .htaccess file: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(?!.*?public).* index.php [QSA,L] I need to do this to run an app using PHP on Google App Engine. The reason I'm asking this question, is because Google specifically recommends a code example in their official documentation that is stored in Git Hub called Dr Edit. The Dr Edit code example has a .htaccess file, but no app.yaml file. And, in