just4test
V2EX  ›  Node.js

Node.js 有没有设置系统环境变量的库

  •  
  •   just4test · Jul 25, 2016 · 3421 views
    This topic created in 3584 days ago, the information mentioned may be changed or developed.
    5 replies    2016-08-23 11:51:09 +08:00
    adoyle
        1
    adoyle  
       Jul 25, 2016   ❤️ 1
    arzusyume
        2
    arzusyume  
       Jul 26, 2016
    我最早是用 node-env-file, 后来用 pm2 就直接定义启动参数的文件了
    m31271n
        3
    m31271n  
       Aug 17, 2016
    `process.env` 就够了
    just4test
        4
    just4test  
    OP
       Aug 17, 2016
    @m31271n 这个方法能影响整个系统吗?
    luoyjx
        5
    luoyjx  
       Aug 23, 2016   ❤️ 1
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4895 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 09:39 · PVG 17:39 · LAX 02:39 · JFK 05:39
    ♥ Do have faith in what you're doing.