現在、Google のアプリ エンジンで小さな静的 Web サイトをホストしようとしていますが、app.yaml を正しく構成する際に問題が発生しています。
私のアプリケーションディレクトリ:
[フォルダ] アプリケーション名
[サブフォルダー1] 静的
[subfolder2] css //stylesheets [subfolder2] js //scripts [subfolder2] img //images [subfolder2] files //this contains additional html files Index.html About.html Portfolio.html
app.yaml
favicon.ico
index.yaml
main.py
私の app.yaml は現在、次の情報を保持しています。
アプリケーション: アプリケーション名
バージョン: 1
ランタイム: パイソン
API_バージョン: 1
ハンドラ:
-url: /img/(.*) static_files: static/images/\1 アップロード: static/images/(.*)
ハンドラ:
-url: /css/(.*) static_files: static/stylesheet/\1 アップロード: static/stylesheet/(.*)
ハンドラ:
-url: /js/(.*) static_files: static/javascript/\1 アップロード: static/javascript/(.*)
-url: /(.*.html) static_files: static/\1 アップロード: static/index.html
-url: /.* スクリプト: main.py
ページを実行しようとすると、次のエラー メッセージが表示されます。
ホスト: appengine.google.com
yaml ファイルの解析エラー:
属性「ハンドラ」が重複しています。
「I:\5 - HTML\kaoartwork\app.yaml」の 14 行目、1 列目
2012-07-24 13:00:21 (プロセスはコード 1 で終了しました)
このウィンドウを閉じることができます。
どんな助けでも大歓迎です!