forked from datacommonsorg/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.run_cdc_dev.env
executable file
·55 lines (46 loc) · 1.82 KB
/
.run_cdc_dev.env
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
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Env variables for running run_cdc_dev.sh
# The 3 keys / passwords below are not checked in.
# Either uncomment these lines and set them here or set them separately as environment variables.
# DC_API_KEY=
# MAPS_API_KEY=
# DB_PASS=
# If your DC_API_KEY is for autopush, change this to https://autopush.api.datacommons.org
DC_API_ROOT=https://api.datacommons.org
# Developers will typically change the Cloud SQL and GCS folders below when developing against various DB instances and embeddings files.
# So keep them at the top of the file.
# Cloud SQL settings.
# Set to false is not using Cloud SQL.
USE_CLOUDSQL=true
CLOUDSQL_INSTANCE=datcom-website-dev:us-central1:dc-dev
DB_USER=root
# GCS or local folder to "user data" folder.
# This is primarily for NL embeddings.
# The code looks for it under $USER_DATA_PATH/datacommons/nl/custom_embeddings.yaml
USER_DATA_PATH=gs://customdc-data/dc-dev
GOOGLE_CLOUD_PROJECT=datcom-website-dev
# SQLite settings.
# If using sqlite, set USE_CLOUDSQL to false and USE_SQLITE to true.
USE_SQLITE=false
SQLITE_PATH=
# Set this to false if you don't want to start the NL server.
ENABLE_MODEL=true
# You will typically not change these.
IS_CUSTOM_DC=true
FLASK_ENV=custom_dev
USE_LOCAL_MIXER=true
ENV_PREFIX=Compose
ENABLE_ADMIN=true
DEBUG=true