首页 > 解决方案 > How to set Environment variables on Google Firebase Server

问题描述

I am using the npm module sonarqube scanner (link) in my project.
If executed the module downloads the binary (= contents of .sonar) to the $HOME path directory. This works fine on localhost. But if I deploy it to a firebase server it is downloading the binary to the $HOME directory there which is /root/. And I guess because of this the module cannot find the executeable. I cannot even access this path anywhere.

I would try to put the binary in the filesystem of the server. For this to work I would have to change the $HOME path variable that the module can find it. But I could not find anything directly related to this. Has anyone a idea on this or how to solve?

Logs:

enter image description here

As you see the analysis starts, then it tries to search the binary with the existing $HOME path variable. Afterwards it cannot find the binary, downloads it to the path (which it has no access to) and just skips the rest of the execution.

标签: node.jsfirebasesonarqube

解决方案


推荐阅读