简体   繁体   English

引导程序和Google App引擎

[英]bootstrap and google app engine

I have got some experiance in python, html and php and databases(most SQL Server), and im trying to get into google app engine and bootstraps. 我在python,html和php和数据库(大多数是SQL Server)方面有一些经验,并且我正尝试进入google app引擎和引导程序。

after reading some guides about it, and playing with some examples (guestbook and task list), Im completly in the dark with this problem: 在阅读了一些有关它的指南并玩了一些示例(来宾和任务列表)后,Im在黑暗中完全解决了这个问题:

http://bit.ly/1hCEZW1 this is a simple layout i created using layoutit website. http://bit.ly/1hCEZW1这是我使用layoutit网站创建的简单布局。 . in the future i want to use some of its component to upgrade my GuestBook ( https://github.com/GoogleCloudPlatform/appengine-guestbook-python ), but right now i only want to deploy this layout to appengine, how should edit the app.yaml file? 将来,我想使用其某些组件来升级我的GuestBook( https://github.com/GoogleCloudPlatform/appengine-guestbook-python ),但是现在我只想将此布局部署到appengine,应如何编辑app.yaml文件? this what i thought should work: 我认为这应该工作:

application: obp-lo version: 1 runtime: python27 api_version: 1 threadsafe: true 应用程序:obp-lo版本:1运行时:python27 api_version:1线程安全:true

handlers: - url: /favicon.ico static_files: favicon.ico upload: favicon.ico 处理程序:-网址:/favicon.ico静态文件:favicon.ico上传:favicon.ico

  • url: /bootstrap static_dir: bootstrap 网址:/ bootstrap static_dir:引导程序

  • url: /css mime_type: text/css static_dir: css 网址:/ css mime_type:文本/ css static_dir:css

  • url: /js mime_type: text/javascript static_dir: js 网址:/ js mime_type:文本/ javascript static_dir:js

  • url: /.* script: guestbook.application 网址:/.*脚本:guestbook.application

libraries: - name: webapp2 version: latest - name: jinja2 version: latest 库:-名称:webapp2版本:最新-名称:jinja2版本:最新

but it doesn't :(. any suggestions? 但这不是:(。有什么建议吗?

Aren't bootstrap files just .css and .js files? 引导文件不只是.css和.js文件吗? So they are static files and should go under your static folder 所以它们是静态文件,应该放在您的静态文件夹下

eg, your app.yaml file could have this entry 例如,您的app.yaml文件可能具有此条目

- url: /static
    static_dir: static

and you can have all your css inside /static/css/ and all your js inside /static/js/ 并且您可以将所有css放在/static/css/并将所有js放在/static/js/

But they should not go under the same directory as the Guestbook because it was not marked as static. 但是,它们不应与Guestbook放在同一目录下,因为它没有被标记为静态。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM