node.js - 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:
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.
解决方案
推荐阅读
- swift - 使用 Pickerview 中的数据更改 ARKit 中的图像
- java - 在上传文件时处理数据
- file - 从不同目录kotlin中的文件导入func
- express - server.close 不是函数
- django - 配置不当 - Django
- microcontroller - Contiki Rime 堆栈如何在 Example_Broadcast 中获取广播 ID
- windows - 比较批处理文件中的字符串时如何转义命令?
- java - 如何使 Jackrabbit WebDAV servlet 允许使用 Microsoft Word 进行编辑?
- python - 已安装 opencv 2.4 但版本仍显示为 3.3
- php - 如何解决我的数据库类中的错误计数 php