问题标签 [app.yaml]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - Google App Engine Python,样式表不加载
我有一个由 Python 写入我的应用程序域的 HTML 页面。但是,我的样式表没有加载!在开发控制台中,没有错误,当我检查资源选项卡时,样式表不存在。
HTML 链接:
文件层次结构:
应用程序.yaml:
任何帮助将非常感激!另外,对于 html 链接,我尝试了href
有无前文/
,但它仍然没有用。谢谢!
~地毯嘶嘶声
google-app-engine - App Engine app.yaml - 仅将处理程序限制为开发服务器
有没有办法将处理程序限制为仅开发服务器(在 App Engine 中)?
我的场景:
在 dev 中,我将我的js和css拆分为许多文件,这样调试和观察流程很容易。我有一个小脚本,它将这些资源编译成 2 个文件(1 个js和 1 个css)并创建一个 index.html 的副本,其中仅包含这两个文件。
原始与编译的 HTML 和资源有不同的路径,我希望生产版本只包含编译的。有任何想法吗?
html - 没有 # 在 URL 中的骨干路由器不工作
我正在为我的 HtML5 应用程序及其单页应用程序使用主干布局管理器、把手和 requirejs。我正在使用backbone.history.start({ pushState:true })
这有助于摆脱 # 如果我将 URL 键入为 localhost:9090/#abc 但是如果我将 URL localhost:9090/abc 粘贴到浏览器中,那么它不会路由到正确的页面,而是会转到应用程序.yaml。
在单击事件中,我能够导航到 URL localhost:9090/abc,但当我直接在浏览器中复制粘贴时不能。
我做了很多研究来解决这个问题,但没有结果。任何建议都会有所帮助..提前谢谢
php - GAE PHP App 只显示索引/主页
在主页 index.htm 页面上有一个指向 signUp.htm 页面的链接,该链接不起作用。
我相信这是一个 YAML 问题:
javascript - AJAX is returning string of contents of PHP file on google cloud
If I run this function on another server, the php file actually runs and returns data. When I run this code in a javascript file on google cloud server, I get a string containing the contents of the php file. Is something wrong with my yaml file or is there something else that I am missing? The php file should be throwing some kind of error since I haven't set up the sql database yet.
Here's the AJAX:
I see that 'data' is just a String of the PHP file genjsonphp.php.
EDIT: I am running the app on google-app engine. I made a mistake when I tried to describe my question. I believe my error lies in my YAML file. I have a folder that the main index.php file accesses and calls php files (or that's what it's supposed to do). I need to read up on the app.yaml to fix it I think. Here is what the files looks like now:
google-app-engine - php 生成的 ajax 响应的 app.yaml 配置
我是谷歌应用引擎的新手,我正在尝试为使用 php 和 ajax 的 Web 应用程序配置我的 app.yaml 文件。我使用以下 yaml 文件在 PHP SDK 中运行了应用程序:
虽然这基本上是有效的,但我感觉我做错了什么,因为我真的不想提供对 ajax.php 的访问,因为它纯粹是为了 ajax 处理。当我在 IE9 的浏览器中键入“ajax.php”时,系统会提示我打开或保存“ajax.js”,其中包含来自 ajax 文件的处理代码。在其他浏览器中,相同的代码直接转储到网页上。
如何允许 'index.php' 访问 'ajax.php' 文件但避免此问题?
php - Google App Engine - 未找到 PHP 应用图像/CSS
我正在使用 Google App Engine 构建我的第一个应用程序并直接遇到问题:我的图像和 css 未加载错误:加载资源失败:服务器响应状态为 404(未找到)。我已经尽我所能尝试解决它,现在我很难过。这是我的代码:
PHP:
应用程序.yaml:
目录结构:
和日志:
浏览器中的404:
老实说,我不确定为什么该应用程序找不到图像,非常感谢任何帮助!提前致谢。
python - url "/web" 不匹配任何处理程序
我一直在尝试在 appengine 上做一个简单的 webapp,但我遇到了处理程序的问题。这是我的代码:
我的app.yaml文件:
我的AppWebInterface.py文件:
当我运行 dev_server 并访问 localhost:8080/web 时,我收到此错误:
php - YAML 脚本处理程序
我在根文件夹中有两个文件。IE。index.php
而且看起来像这样signup.php
,app.yaml
问题是,当singup.php
从主页(index.php
)的链接被点击时,只有地址栏的 url 发生变化,但页面保持不变的主页(index.php
)。
php - Google APP Engine 中的 PHP 会话出现问题
我有三个文件...
第一个是index.php
第二个是logincheck.php
第三个文件是name.php
当我提交表单时,它会将我带到logincheck.php
页面,当我单击链接时,它会将页面带到我的name.php
页面。问题是,名称没有被打印出来。我很了解 PHP,但我是 Google App Engine 的新手……而且我app.yaml
看起来像这样