Skip to content

Files

Latest commit

 

History

History

32_Deploy_NodeJS_App_on_Cloud

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Deploy NodeJS App to Cloud

  • We can't set PORT for App on the server by own.
  • We need a enviournment variable i.e. Dynamic Variable.
  • Enviornment variable is set by cloud.
  • process.env.Variable_Name
  • For cloud sever make sure you have start script "start": "node app.js"
  • For Node.js, the main file is typically app.js