-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript_config.sh
More file actions
59 lines (43 loc) · 1.87 KB
/
Copy pathscript_config.sh
File metadata and controls
59 lines (43 loc) · 1.87 KB
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
#!/bin/bash
#
# Author: gavaletz@google.com (Eric Gavaletz)
# Because of the growing number of scripts there was a growing number of
# dependencies and variables being set in lots of different locations. This
# script is an attempt to get all of those in one place. To use these
# in any script simply source it as such.
#
# . ./script_config.sh
#
# Note that this will execute the contents on this script each time that it is
# sourced so nothing in this file should produce side effects.
# NOTE on python versions:
# Because a lot of systems have a default python version newer than 2.5 it is
# necessary to be more precise about which python we want to use for running
# the dev_appserver. If you do not use 2.5, then it will give you warnings but
# more importantly it is possible that you could include something that works
# with the newer version of python that you use locally and it will break your
# code once it is uploaded to the development GAE instance.
PYTHON=python2.5
APPCFG=`which appcfg.py`
APPSERVER=`which dev_appserver.py`
APP_ID=`cat app.yaml.tmpl | grep application | cut -d " " -f 2`
APP_DOMAIN=appspot.com
VERSION=`./set_version.sh`
USER_EMAIL=`git config user.email`
# These are used for downloading data from the production environment, and using
# it with the dev_appserver. See download_dev_data.sh and upload_local_data.sh
# for more information.
DATA_PATH=dev_data
DOWNLOAD_DATA_PATH=$DATA_PATH/datastore.sql3
DATASTORE_PATH=$DATA_PATH/dev_appserver.datastore
# These are used for running the local dev_appserver. These will not effect the
# application as deployed on GAE.
DEBUG=""
#TODO(user) If having trouble try using this.
#DEBUG="-d"
CLEAN=""
#TODO(user) If having trouble with the datastore try uncommenting this.
#CLEAN="-c"
ADDRESS=""
#TODO(user) If you need to bind to a local address uncomment and adjust this.
#ADDRESS="--address=192.168.1.128"