-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathapp.yaml
110 lines (81 loc) · 2.46 KB
/
app.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# This file is part of VertNet: https://github.com/VertNet/webapp
#
# VertNet is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# VertNet is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Foobar. If not, see: http://www.gnu.org/licenses
# This is the App Engine configuration file for local development.
# Note that static assets are sources from www/ which contains full
# sourcecode without minification.
application: vertnet-portal
version: stats
runtime: python27
threadsafe: true
api_version: 1
libraries:
- name: jinja2
version: "latest"
# - name: webapp2
# version: "2.5.1"
# Try the following to see if it overcomes the out of memory issues in the traits version
# of the app. It didn't.
#instance_class: B4
#basic_scaling:
# max_instances: 4
# idle_timeout: 3m
handlers:
# Static assets
- url: /js/lib/*.
static_dir: www/lib
- url: /js
static_dir: www/js
- url: /css
static_dir: www/css
- url: /fonts
static_dir: www/fonts
- url: /img
static_dir: www/img
- url: /favicon\.ico
static_files: img/favicon.ico
upload: img/favicon\.ico
# APIs
- url: /api/search.*
script: vertnet.service.api.handlers
- url: /api/download.*
script: vertnet.service.api.handlers
- url: /api/user/get
script: vertnet.service.user.handler
- url: /api/github.*
script: vertnet.service.github.handler
- url: /service/download.*
script: vertnet.service.download.api
- url: /apitracker.*
script: vertnet.service.tracker.api
- url: /service/rpc/record.*
script: vertnet.service.record.rpc
- url: /service/organization.*
script: vertnet.service.organization.rpc
- url: /api/user.*
script: vertnet.service.user.handler
- url: /api/organization.*
script: vertnet.api.organization.rpc
# - url: /api/stats.*
# script: vertnet.api.stats.rpc
- url: /service/stats.*
script: vertnet.service.stats.main
- url: /service/repochecker.*
script: vertnet.service.repochecker.main
# CRON tasks
- url: /tasks/daily_portal_stats.*
script: vertnet.service.tasks.daily_portal_stats.main
# Main handler
- url: /.*
script: app.handler