爱简单吧

分享简单,爱生活,爱简单

Openshift DIY python 环境常用变量记录

Openshift DIY 确实很方便,记录一些常用环境变量,以备日后查询。





在 os.environ 里面

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
OPENSHIFT_MYSQL_DIR: /var/lib/openshift/526b927d4382ece9020000a8/mysql/
OPENSHIFT_MYSQL_IDENT: redhat:mysql:5.1:0.2.4
TMP_DIR: /tmp/
OPENSHIFT_CLOUD_DOMAIN: rhcloud.com
OPENSHIFT_PYPI_MIRROR_URL: http://mirror1.ops.rhcloud.com/mirror/python/web/simple
OPENSHIFT_APP_DNS: yourname-youdomain.rhcloud.com
OPENSHIFT_SECRET_TOKEN: zcDe8pAt_xxxxxx_rTB2W_MxdXMLLF
PATH: /bin:/usr/bin:/usr/sbin
OPENSHIFT_PRIMARY_CARTRIDGE_DIR: /var/lib/openshift/526xxxxxxx382ece9020000a8/diy/
OPENSHIFT_TMP_DIR: /tmp/
OPENSHIFT_MYSQL_DB_PORT: 3306
OPENSHIFT_BROKER_HOST: openshift.redhat.com
OPENSHIFT_DIY_DIR: /var/lib/openshift/526b927d4382ece9020000a8/diy/
OPENSHIFT_MYSQL_DB_URL: mysql://xxxxxx:xxxxxxxx@127.2.184.2:3306/
OPENSHIFT_DIY_IDENT: redhat:diy:0.1:0.0.4
SHLVL: 3
OPENSHIFT_MYSQL_DB_HOST: 127.2.184.2
OPENSHIFT_GEAR_UUID: 526b927d4382ece9020000a8
TMP: /tmp/
OPENSHIFT_DIY_PORT: 8080
_: /usr/bin/nohup
OPENSHIFT_DIY_LOG_DIR: /var/lib/openshift/526b927d4382ece9020000a8/diy//logs/
OPENSHIFT_HOMEDIR: /var/lib/openshift/526b927d4382ece9020000a8/
HOME: /var/lib/openshift/526b927d4382ece9020000a8/
OPENSHIFT_APP_NAME: dixx
OPENSHIFT_DATA_DIR: /var/lib/openshift/526b927d4382ece9020000a8/app-root/data/
OPENSHIFT_NAMESPACE: xxcn
OPENSHIFT_MYSQL_DB_LOG_DIR: /var/lib/openshift/526b927d4382ece9020000a8/mysql//log/
OPENSHIFT_DIY_IP: 127.2.184.1
OPENSHIFT_APP_UUID: 526b927d4382ece9020000a8
OPENSHIFT_MYSQL_DB_SOCKET: /var/lib/openshift/526b927d4382ece9020000a8/mysql//socket/mysql.sock
OPENSHIFT_REPO_DIR: /var/lib/openshift/526b927d4382ece9020000a8/app-root/runtime/repo/
OPENSHIFT_CARTRIDGE_SDK_BASH: /usr/lib/openshift/cartridge_sdk/bash/sdk
OPENSHIFT_APP_SSH_PUBLIC_KEY: /var/lib/openshift/526b927d4382ece9020000a8/.openshift_ssh/id_rsa.pub
TMPDIR: /tmp/
OPENSHIFT_GEAR_DNS: xxxx.rhcloud.com
OPENSHIFT_MYSQL_DB_PASSWORD: Uxxxx1k
OPENSHIFT_APP_SSH_KEY: /var/lib/openshift/526b927d4382ece9020000a8/.openshift_ssh/id_rsa
OPENSHIFT_GEAR_NAME: diy
OPENSHIFT_MYSQL_DB_USERNAME: xxxxxxC
PWD: /var/lib/openshift/526b927d4382ece9020000a8/diy
GEM_HOME: /var/lib/openshift/526b927d4382ece9020000a8/.gem

 

Share

 

Comments