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

  • DetroitBORG

    DetroitBORG

    29 Temmuz 2008
  • finalcall07

    finalcall07

    11 NİSAN 2008
  • technodromeband's channel

    technodromeb

    28 NİSAN 2011