ThalKod / discord-clone

A "Discord clone" with Socket.io, Node.js & MongoDB... Create channel, invite other people to your channel, chat with everyone...
MIT License
152 stars 81 forks source link

config.dbURL = process.env.DATABASEURL || "mongodb://localhost/minicord"; #181

Closed 00-00-00-11 closed 5 years ago

00-00-00-11 commented 5 years ago

i dont understand that.,..

ThalKod commented 5 years ago

It's the same thing as :

if(process.env.DATABASEURL){
  config.dbURL = process.env.DATABASEURL;
}else{
  config.dbURL = "mongodb://localhost/minicord";
}