-
Notifications
You must be signed in to change notification settings - Fork 7
/
portal-web.yaml
134 lines (103 loc) · 3.8 KB
/
portal-web.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# 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.
# CODEBASE INFO
# Repository: VertNet/webapp
# Last pushed to master branch: 2019-04-13
#
# DEPLOYMENT INFO
# Last deployed api version: 2017-01-12T20:09-03:00 index-2013-08-08
# Last deployed tuco version: 2019-04-13T13:09-03:00 index-2013-08-08
# Last deployed pagodarose version: 2016-09-15T20:51+02:00 index-2013-08-08
# Last deployed prod version: 2019-04-13T13:09-3:00 index-2013-08-08 (from VertNet/webapp repo)
# This is the App Engine configuration file for using gcloud.
# args:
# --version prod|[other] # Indicates version to use. If 'prod', --promote flag should be used
# --promote # Optional, removes the version id from the deployment URL. Skip for testing and/or dev version
#
# To deploy for production at http://portal-web.vertnet-portal.appspot.com:
# gcloud app deploy portal-web.yaml --version prod --promote
#
# To deploy for production at http://api.vertnet-portal.appspot.com:
# The API should be deployed as a module and removed from here altogether.
# gcloud app deploy portal-web.yaml --version api --no-promote
#
# Or to deploy for testing at http://tuco.portal-web.vertnet-portal.appspot.com
# gcloud app deploy portal-web.yaml --version tuco --no-promote
#
# Or to deploy for testing at http://pagodarose.vertnet-portal.appspot.com
# gcloud app deploy portal-web.yaml --version pagodarose --no-promote
service: default
runtime: python27
api_version: 1
threadsafe: true
automatic_scaling:
min_instances: 1
min_idle_instances: 1
libraries:
- name: jinja2
version: "latest"
# - name: webapp2
# version: "2.5.1"
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
# APIs
# API search is turned on here, but should be deployed from a module and turned off here
- url: /api/search.*
script: vertnet.service.api.handlers
# API download is turned on here, but should be deployed from a module and turned off here
- 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
# Turn this on to track usage of the search, download, and feedback APIs
- 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