OpenShift Environment Variables

Server Norckon 210℃ 0评论

1476955176-1488-Open-shift-enerprise

INTRODUCE

Environment variables are placeholders for values that are provided to a software program at runtime. They are particularly useful when the values are likely to be different from one host system to the next, or from one run to the next. Including these placeholders in applications makes the application code more portable and flexible. This flexibility is critical for writing applications that are easily deployed and scaled on OpenShift Online.

SERVER VARS

Name Value
OPENSHIFT_SECRET_TOKEN YNuPjaaPl4_o_L226cJgY63cqoj9DlJySMPD5u8sDqnguYnRR5PJAnfqpiG1d6jpahHoFaTCEa0AOTPXOdsesCuVvZ4Vyzmu50NI7xn6QPW82FNaMsyf0DMXohWvjeE6
MANPATH /opt/rh/mysql55/root/usr/share/man::
OPENSHIFT_GEAR_MEMORY_MB 512
OPENSHIFT_PHP_IDENT redhat:php:5.3:0.0.28
OPENSHIFT_MYSQL_DIR /var/lib/openshift/539fdface0b8cde5800003e8/mysql/
GEM_HOME /var/lib/openshift/539fdface0b8cde5800003e8/.gem
OPENSHIFT_DEPLOYMENT_TYPE git
OPENSHIFT_PHP_LOG_DIR /var/lib/openshift/539fdface0b8cde5800003e8/app-root/logs/
OPENSHIFT_LOG_DIR /var/lib/openshift/539fdface0b8cde5800003e8/app-root/logs/
TMPDIR /tmp/
OPENSHIFT_DEPLOYMENTS_DIR /var/lib/openshift/539fdface0b8cde5800003e8/app-deployments/
OPENSHIFT_TMP_DIR /tmp/
OPENSHIFT_MYSQL_DB_PORT 3306
OPENSHIFT_HOMEDIR /var/lib/openshift/539fdface0b8cde5800003e8/
OPENSHIFT_REPO_DIR /var/lib/openshift/539fdface0b8cde5800003e8/app-root/runtime/repo/
OPENSHIFT_GEAR_NAME openskills
OPENSHIFT_PHPMYADMIN_IP 127.2.133.131
OPENSHIFT_PYPI_MIRROR_URL http://mirror1.ops.rhcloud.com/mirror/python/web/simple
OPENSHIFT_MYSQL_DB_HOST 127.2.133.130
PHPRC /var/lib/openshift/539fdface0b8cde5800003e8/php/configuration/etc/php.ini
OPENSHIFT_MYSQL_DB_PASSWORD WrgPdNimQNfm
OPENSHIFT_CLOUD_DOMAIN rhcloud.com
OPENSHIFT_APP_SSH_PUBLIC_KEY /var/lib/openshift/539fdface0b8cde5800003e8/.openshift_ssh/id_rsa.pub
PHP_INI_SCAN_DIR /var/lib/openshift/539fdface0b8cde5800003e8/php/configuration/etc/php.d
LD_LIBRARY_PATH /opt/rh/mysql55/root/usr/lib64
TMP_DIR /tmp/
OPENSHIFT_MYSQL_IDENT redhat:mysql:5.5:0.2.20
OPENSHIFT_PHPMYADMIN_VERSION 4
OPENSHIFT_BUILD_DEPENDENCIES_DIR /var/lib/openshift/539fdface0b8cde5800003e8/app-root/runtime/build-dependencies/
OPENSHIFT_MYSQL_DB_USERNAME adminybg1xsX
OPENSHIFT_MYSQL_DB_SOCKET /var/lib/openshift/539fdface0b8cde5800003e8/mysql//socket/mysql.sock
OPENSHIFT_PHP_PATH_ELEMENT /var/lib/openshift/539fdface0b8cde5800003e8/php/phplib/pear/pear:/var/lib/openshift/539fdface0b8cde5800003e8/php/usr/bin
PATH /var/lib/openshift/539fdface0b8cde5800003e8/php/phplib/pear/pear:/var/lib/openshift/539fdface0b8cde5800003e8/php/usr/bin:/bin:/usr/bin:/usr/sbin
OPENSHIFT_PHP_DIR /var/lib/openshift/539fdface0b8cde5800003e8/php/
PWD /var/lib/openshift/539fdface0b8cde5800003e8/php
OPENSHIFT_MYSQL_DB_URL mysql://adminybg1xsX:WrgPdNimQNfm@127.2.133.130:3306/
OPENSHIFT_PHPMYADMIN_LOG_DIR /var/lib/openshift/539fdface0b8cde5800003e8/app-root/logs/
OPENSHIFT_APP_DNS openskills-example42.rhcloud.com
OPENSHIFT_PHPMYADMIN_DIR /var/lib/openshift/539fdface0b8cde5800003e8/phpmyadmin/
OPENSHIFT_PRIMARY_CARTRIDGE_DIR /var/lib/openshift/539fdface0b8cde5800003e8/php/
OPENSHIFT_GEAR_DNS openskills-example42.rhcloud.com
OPENSHIFT_CARTRIDGE_SDK_BASH /usr/lib/openshift/cartridge_sdk/bash/sdk
OPENSHIFT_MYSQL_VERSION 5.5
OPENSHIFT_APP_SSH_KEY /var/lib/openshift/539fdface0b8cde5800003e8/.openshift_ssh/id_rsa
HOME /var/lib/openshift/539fdface0b8cde5800003e8
OPENSHIFT_DEPLOYMENT_BRANCH master
OPENSHIFT_PHP_PORT 8080
SHLVL 3
OPENSHIFT_PHPMYADMIN_IDENT redhat:phpmyadmin:4:0.0.13
OPENSHIFT_DEPENDENCIES_DIR /var/lib/openshift/539fdface0b8cde5800003e8/app-root/runtime/dependencies/
OPENSHIFT_PHP_VERSION 5.3
OPENSHIFT_KEEP_DEPLOYMENTS 1
OPENSHIFT_APP_NAME openskills
OPENSHIFT_DATA_DIR /var/lib/openshift/539fdface0b8cde5800003e8/app-root/data/
TMP /tmp/
OPENSHIFT_MYSQL_DB_LOG_DIR /var/lib/openshift/539fdface0b8cde5800003e8/app-root/logs/
OPENSHIFT_GEAR_UUID 539fdface0b8cde5800003e8
OPENSHIFT_AUTO_DEPLOY true
OPENSHIFT_NAMESPACE example42
OPENSHIFT_BROKER_HOST openshift.redhat.com
OPENSHIFT_MYSQL_LD_LIBRARY_PATH_ELEMENT /opt/rh/mysql55/root/usr/lib64
OPENSHIFT_APP_UUID 539fdface0b8cde5800003e8
OPENSHIFT_PHPMYADMIN_PORT 8080
OPENSHIFT_UMASK 077
OPENSHIFT_CARTRIDGE_SDK_RUBY /usr/lib/openshift/cartridge_sdk/ruby/sdk.rb
HISTFILE /var/lib/openshift/539fdface0b8cde5800003e8/app-root/data/.bash_history
OPENSHIFT_PHP_IP 127.2.133.129
HTTP_HOST openskill.info
HTTP_ACCEPT_LANGUAGE zh-CN,zh;q=0.8,en-US;q=0.6,en;q=0.4
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_UPGRADE_INSECURE_REQUESTS 1
HTTP_DNT 1
HTTP_X_CLOUD_TRACE_CONTEXT ef2a9be25588b44c461f652dfdae51a9/15839540012770001650;o=1
HTTP_ACCEPT_ENCODING gzip, deflate, sdch, gzip,deflate,br
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.89 Safari/537.36 AppEngine-Google; (+http://code.google.com/appengine; appid: s~dfcproxy8)
HTTP_X_FORWARDED_PROTO http
HTTP_X_FORWARDED_PORT 80
HTTP_X_REQUEST_START t=1476954082635473
HTTP_X_CLIENT_IP 107.178.195.222
HTTP_X_FORWARDED_FOR 107.178.195.222
HTTP_X_FORWARDED_HOST openskill.info
HTTP_X_FORWARDED_SERVER openskills-example42.rhcloud.com
HTTP_CONNECTION Keep-Alive
SERVER_SIGNATURE Apache/2.2.15 (Red Hat) Server at openskill.info Port 80
SERVER_SOFTWARE Apache/2.2.15 (Red Hat)
SERVER_NAME openskill.info
SERVER_ADDR 127.2.133.129
SERVER_PORT 80
REMOTE_ADDR 127.2.133.129
DOCUMENT_ROOT /var/lib/openshift/539fdface0b8cde5800003e8/app-root/runtime/repo/
SERVER_ADMIN root@localhost
SCRIPT_FILENAME /var/lib/openshift/539fdface0b8cde5800003e8/app-root/runtime/repo/pages/enviro.php
REMOTE_PORT 30378
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /pages/enviro.php
SCRIPT_NAME /pages/enviro.php
PHP_SELF /pages/enviro.php
REQUEST_TIME 1476954082

ENVIRTONMENT VARS

Name Value
OPENSHIFT_SECRET_TOKEN YNuPjaaPl4_o_L226cJgY63cqoj9DlJySMPD5u8sDqnguYnRR5PJAnfqpiG1d6jpahHoFaTCEa0AOTPXOdsesCuVvZ4Vyzmu50NI7xn6QPW82FNaMsyf0DMXohWvjeE6
MANPATH /opt/rh/mysql55/root/usr/share/man::
OPENSHIFT_GEAR_MEMORY_MB 512
OPENSHIFT_PHP_IDENT redhat:php:5.3:0.0.28
OPENSHIFT_MYSQL_DIR /var/lib/openshift/539fdface0b8cde5800003e8/mysql/
GEM_HOME /var/lib/openshift/539fdface0b8cde5800003e8/.gem
OPENSHIFT_DEPLOYMENT_TYPE git
SHELL /bin/sh
OPENSHIFT_PHP_LOG_DIR /var/lib/openshift/539fdface0b8cde5800003e8/app-root/logs/
OPENSHIFT_LOG_DIR /var/lib/openshift/539fdface0b8cde5800003e8/app-root/logs/
TMPDIR /tmp/
OPENSHIFT_DEPLOYMENTS_DIR /var/lib/openshift/539fdface0b8cde5800003e8/app-deployments/
OPENSHIFT_TMP_DIR /tmp/
OPENSHIFT_MYSQL_DB_PORT 3306
OPENSHIFT_HOMEDIR /var/lib/openshift/539fdface0b8cde5800003e8/
OPENSHIFT_REPO_DIR /var/lib/openshift/539fdface0b8cde5800003e8/app-root/runtime/repo/
OPENSHIFT_GEAR_NAME openskills
OPENSHIFT_PHPMYADMIN_IP 127.2.133.131
OPENSHIFT_PYPI_MIRROR_URL http://mirror1.ops.rhcloud.com/mirror/python/web/simple
OPENSHIFT_MYSQL_DB_HOST 127.2.133.130
PHPRC /var/lib/openshift/539fdface0b8cde5800003e8/php/configuration/etc/php.ini
OPENSHIFT_MYSQL_DB_PASSWORD WrgPdNimQNfm
USER 539fdface0b8cde5800003e8
OPENSHIFT_CLOUD_DOMAIN rhcloud.com
OPENSHIFT_APP_SSH_PUBLIC_KEY /var/lib/openshift/539fdface0b8cde5800003e8/.openshift_ssh/id_rsa.pub
PHP_INI_SCAN_DIR /var/lib/openshift/539fdface0b8cde5800003e8/php/configuration/etc/php.d
LD_LIBRARY_PATH /opt/rh/mysql55/root/usr/lib64
TMP_DIR /tmp/
OPENSHIFT_MYSQL_IDENT redhat:mysql:5.5:0.2.20
OPENSHIFT_PHPMYADMIN_VERSION 4
OPENSHIFT_PHP_DOCUMENT_ROOT /var/lib/openshift/539fdface0b8cde5800003e8/app-root/runtime/repo/
OPENSHIFT_BUILD_DEPENDENCIES_DIR /var/lib/openshift/539fdface0b8cde5800003e8/app-root/runtime/build-dependencies/
OPENSHIFT_MYSQL_DB_USERNAME adminybg1xsX
OPENSHIFT_MYSQL_DB_SOCKET /var/lib/openshift/539fdface0b8cde5800003e8/mysql//socket/mysql.sock
OPENSHIFT_PHP_PATH_ELEMENT /var/lib/openshift/539fdface0b8cde5800003e8/php/phplib/pear/pear:/var/lib/openshift/539fdface0b8cde5800003e8/php/usr/bin
PATH /var/lib/openshift/539fdface0b8cde5800003e8/php/phplib/pear/pear:/var/lib/openshift/539fdface0b8cde5800003e8/php/usr/bin:/bin:/usr/bin:/usr/sbin
OPENSHIFT_PHP_DIR /var/lib/openshift/539fdface0b8cde5800003e8/php/
PWD /var/lib/openshift/539fdface0b8cde5800003e8/php
OPENSHIFT_MYSQL_DB_URL mysql://adminybg1xsX:WrgPdNimQNfm@127.2.133.130:3306/
OPENSHIFT_PHPMYADMIN_LOG_DIR /var/lib/openshift/539fdface0b8cde5800003e8/app-root/logs/
OPENSHIFT_APP_DNS openskills-example42.rhcloud.com
OPENSHIFT_PHPMYADMIN_DIR /var/lib/openshift/539fdface0b8cde5800003e8/phpmyadmin/
OPENSHIFT_PRIMARY_CARTRIDGE_DIR /var/lib/openshift/539fdface0b8cde5800003e8/php/
OPENSHIFT_GEAR_DNS openskills-example42.rhcloud.com
OPENSHIFT_CARTRIDGE_SDK_BASH /usr/lib/openshift/cartridge_sdk/bash/sdk
OPENSHIFT_MYSQL_VERSION 5.5
OPENSHIFT_APP_SSH_KEY /var/lib/openshift/539fdface0b8cde5800003e8/.openshift_ssh/id_rsa
HOME /var/lib/openshift/539fdface0b8cde5800003e8
OPENSHIFT_DEPLOYMENT_BRANCH master
OPENSHIFT_PHP_PORT 8080
SHLVL 3
OPENSHIFT_PHPMYADMIN_IDENT redhat:phpmyadmin:4:0.0.13
OPENSHIFT_DEPENDENCIES_DIR /var/lib/openshift/539fdface0b8cde5800003e8/app-root/runtime/dependencies/
OPENSHIFT_PHP_VERSION 5.3
OPENSHIFT_KEEP_DEPLOYMENTS 1
OPENSHIFT_APP_NAME openskills
LOGNAME 539fdface0b8cde5800003e8
OPENSHIFT_DATA_DIR /var/lib/openshift/539fdface0b8cde5800003e8/app-root/data/
TMP /tmp/
OPENSHIFT_MYSQL_DB_LOG_DIR /var/lib/openshift/539fdface0b8cde5800003e8/app-root/logs/
OPENSHIFT_GEAR_UUID 539fdface0b8cde5800003e8
OPENSHIFT_AUTO_DEPLOY true
OPENSHIFT_NAMESPACE example42
OPENSHIFT_BROKER_HOST openshift.redhat.com
OPENSHIFT_MYSQL_LD_LIBRARY_PATH_ELEMENT /opt/rh/mysql55/root/usr/lib64
OPENSHIFT_APP_UUID 539fdface0b8cde5800003e8
OPENSHIFT_PHPMYADMIN_PORT 8080
OPENSHIFT_UMASK 077
OPENSHIFT_CARTRIDGE_SDK_RUBY /usr/lib/openshift/cartridge_sdk/ruby/sdk.rb
HISTFILE /var/lib/openshift/539fdface0b8cde5800003e8/app-root/data/.bash_history
OPENSHIFT_PHP_IP 127.2.133.129
_ /usr/bin/nohup

REFERENCE

喜欢 (0)
COMMENT
Cancel Comment

EMOJI

Hi, We need some information

  • Nickname (*)
  • E-Mail (*)
  • Website