SORU
11 Kasım 2012, Pazar


Nasıl sürecin değerini değiştirmek için.env.Node.js bağlantı NOKTASI?

process.env.PORT, değerini değiştirmek istiyorum bunu nasıl yapabilirim?

Ubuntu 12.04 koşuyorum.

CEVAP
11 Kasım 2012, Pazar


Sadece bir çalışma (unıx kabuğunda istemi):

$ PORT=1234 node app.js

Daha kalıcı:

$ export PORT=1234
$ node app.js

Windows:

set PORT=1234

PowerShell Windows:

$env:PORT = 1234

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Ben Schoon

    Ben Schoon

    23 Kasım 2012
  • Ciaran Blumenfeld

    Ciaran Blume

    20 NİSAN 2009
  • Alexey - servant of Christ

    Alexey - ser

    15 EYLÜL 2007