Environment Variables
Last updated
Was this helpful?
Last updated
Was this helpful?
By default, each service has different variables, which depends on the environment. For example, database environments, which available on the development environment may differ from the staging environment, and so on... For more information about environments, see the section. Depends on service language, environment variables can be accessed in different ways.
To access environment variables using TypeScript or JavaScript language use:
Below, you can find information about available environment variables which code.store platform set by default.
PROJECT_ID
internal ID of the project on the code.store platform
ENVIRONMENT_ID
name of the , where service deployed
SERVICE_ID
internal ID of the service on the code.store platform
DATABASE_HOST
connection host
DATABASE_PORT
connection port
DATABASE_NAME
name of the database
DATABASE_USERNAME
name of the user which can access to services database
REDIS_HOST
Redis connection host
REDIS_PORT
Redis connection port
NODE_VERSION
node version, which deployed service used