forked from cfpb/consumerfinance.gov
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env_SAMPLE
executable file
·95 lines (72 loc) · 3.37 KB
/
.env_SAMPLE
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
# --------------------------------------------------------------------------
# Environment variables are initialized in this file via the Autoenv module.
# The file may be manually initialized with . ./.env from the project root.
# --------------------------------------------------------------------------
############################
# Django Application Server.
############################
export DJANGO_ENV=base
#export DJANGO_STATIC_ROOT=<path_to_static_files>
#############################################
# V1 - application feature related variables.
#############################################
#export PDFREACTOR_LICENSE=<license_key>
#export PDFREACTOR_LIB=<python_wrapper_lib_path>
############################
# Mysql Database Server.
############################
export MYSQL_NAME=v1
export MYSQL_USER=root
#export MYSQL_PW=<password>
#export MYSQL_HOST=<hostname>
#export MYSQL_PORT=<portnumber>
###########################################################################
# Elastic-Search - for indexing and storing wordpress content for querying.
###########################################################################
export ES_PORT=9200
export ES_HOST=localhost
export SHEER_ELASTICSEARCH_INDEX=content
########################################################
# Sheer - for loading data into Elastic-Search instance.
########################################################
# Name of the virtualenv created for Sheer in
# https://github.com/cfpb/cfgov-refresh/blob/flapjack/INSTALL.md#sheer
export VIRTUAL_ENV=cfgov-refresh
# WordPress content API base URL.
export WORDPRESS=http://www.consumerfinance.gov
##############################################################
# GOVDELIVERY (optional) - for running the subscription forms.
##############################################################
#export GOVDELIVERY_BASE_URL=https://stage-api.govdelivery.com/
#export GOVDELIVERY_ACCOUNT_CODE=<govdelivery_account_code>
#export GOVDELIVERY_USER=<govdelivery_username>
#export GOVDELIVERY_PASSWORD=<govdelivery_password>
# Forwarding locations on subscription success and error.
#export SUBSCRIPTION_SUCCESS_URL=/govdelivery-subscribe/success/
#export SUBSCRIPTION_USER_ERROR_URL=/govdelivery-subscribe/error/
#export SUBSCRIPTION_SERVER_ERROR_URL=/govdelivery-subscribe/server-error/
########################################################
# TESTING (optional) - for handling testing of the site.
########################################################
#export HTTP_HOST=localhost
#export HTTP_PORT=8000
#export SELENIUM_URL=http://localhost:4444/wd/hub
# Web service ID for accessibility testing via http://achecker.ca site.
#export ACHECKER_ID=<web_service_id>
# Tox Django unit testing Python version.
export TOXENV=py27
#################################################################
# SAUCE LABS (optional) - for handling cloud testing of the site.
#################################################################
#export SAUCE_USERNAME=<sauce_username>
#export SAUCE_ACCESS_KEY=<sauce_access_key>
#export SAUCE_SELENIUM_URL=localhost:4445/wd/hub
###############################################
# Project configuration - set up working state.
###############################################
if ! type "$workon" 2>/dev/null; then
workon $VIRTUAL_ENV &&
echo Virtualenv \"$VIRTUAL_ENV\" activated. ||
echo Virtualenv was not activated.
fi
echo Environment variables successfully loaded.