cancel
Showing results for 
Search instead for 
Did you mean: 

How to use environment variable in nuxeo.conf?

WhileLoop_
Champ in-the-making
Champ in-the-making

Hi,

I am trying to use a environment variable in nuxeo.conf. I am using Ubuntu 14.04.1 LTS.

I installed Nuxeo through apt-get from the Nuxeo repository.

I added "DBHOST=localhost" to "/etc/environment" then sourced the file.

When I do "echo $DBHOST" I get the output "localhost".

Then I changed the db.host line in nuxeo.conf to "nuxeo.db.host=${DBHOST}" but when I start the server it fails because it cannot connect to the database.

It works fine if I do "nuxeo.db.host=localhost".

3 REPLIES 3

Florent_Guillau
World-Class Innovator
World-Class Innovator

Unfortunately there is no support in nuxeo.conf to read environment variables.

What you could do is change nuxeoctl to upate/rewrite nuxeo.conf with your environment variable before the normal startup.

From http

The wording is not meant to refer to OS environment variables. We'll rephrase that, thanks for the pointers.

Getting started

Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.