Here is a list of predefined environment variables visible during runtime (including hook processing, cron jobs and ssh commands):
Note
For complete list of available environment variables, deploy sample app: node-env.
Contains an access URL for a database service. If more than one type of database is present, DATABASE_URL will not be available. Instead, use the Database Specific URL variables below.
Example:
mysql://u93Mm8XmGXQ9R:[email protected]:3306/d0a60c0be931f4982bbef153f993237bc
Custom/alternate PIP repo location. See running your own package index for more info.
Example:
env:
PIP_OPTS: "--extra-index-url=http://company.com/inhouse-pypi-mirror"
This variable contains the default start command that would be used when stackato.yml doesn't override it. It is provided so that users can specify a wrapper around the default command, e.g.
- processes:
- web: newrelic_wrapper $PROCESSES_WEB
Note that PROCESSES_WEB may be undefined when Stackato can't determine the default command (e.g. because the app uses a non-standard main application file).
Custom/alternate PyPM repo location. Repo mirroring is sort of undocumented feature. Example:
env:
PYPM_OPTS: "-R http://pypm-free.activestate.com/2.7/linux-x86_64/"
Note
Internal use, subject to change.
Contains a list of all environment variables set with stackato env-add or stackato.yml.
Contains the same value as STACKATO_APP_NAME transformed to uppercase, with dashes replaced by underscores. For example if STACKATO_APP_NAME is "php-info", then STACKATO_APP_NAME_UPCASE will be "PHP_INFO".
This makes it possible to access the environment variables for harbor and filesystem services.
This is the "root" directory from the Stackato point of view. It contains app specific HOME directory (app/), the log file directory (logs/) and various scripts.
The HOME environment variable will actually point to the app directory, which looks mostly like the directory uploaded by the client. This is where stackato.yml and all the application files live.
If the app uses a single filesystem service, then the local mount point is stored in this variable.
If there is more than one filesystem service, STACKATO_FILESYSTEM is not available. Instead, a custom environment variable STACKATO_FILESYSTEM_* will be created based on the name of each filesystem service (with hyphens replaced by underscores).
For example, if your stackato.yml file configures the following services:
services:
my-data: filesystem
plugins: filesystem
Two environment variables would be created: STACKATO_FILESYSTEM_MY_DATA and STACKATO_FILESYSTEM_PLUGINS.
Set by the Perl and Python frameworks only. It contains the default uswgi start command to run the application via uwsgi. It is provided in case the user wants to add additional uwsgi options in stackato.yml:
processes:
web: $STACKATO_UWSGI --another-uwsgi-option