Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Objective


SOAJS uses environment variables when deploying services and daemons.

These environment variables define some basic settings for the service and the environment that the service should be deployed in so that SOAJS load the corresponding settings.



Environment Variables


The path of the profile is set using an environment variable on your machine.


Env VariableDefault ValueDescription
SOAJS_PROFILE/opt/soajs/node_modules/soajs/profiles/single.jsLocation of the profile to use so that SOAJS can connect to the core database.
SOAJS_ENVdevThe environment the service uses and registers itself under it upon start.
SOAJS_SRVIPMachine's IP addressOptional environment variable used to specify which IP address to use if the machine has more than one active interface.
SOAJS_SOLOfalseOptional environment variable used to launch any service on top of SOAJS without the need of a database.
SOAJS_SRV_AUTOREGISTERHOSTtrueOptional environment variable used in case a service should register itself or not.
SOAJS_GC_NAMEN/AMandatory variable if deploying a GCS service and contains the name of that GCS service.
SOAJS_GC_VERSIONN/AMandatory variable if deploying a GCS service and contains the version of that GCS service.
SOAJS_GC_MAX_UPLOAD_LIMIT2MBOptional variable if deploying a GCS service that specifies the maximum upload limit of file sizes to accept.
SOAJS_DAEMON_GRP_CONFN/AContains the name of the daemon group to use; available for daemons ONLY.
  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.