javascript - Which files should provided with node application to prod -


i've create nodejs application , i'll need ship ,my question if need following:

  • node modules

  • test folder

should put both in gitigonre file , if in addition should additional actions on application

you should .gitignore node_modules , npm install in every environment separately. need folder run.

you don't need test folder run app though. might want test app in production environment though, depends on needs.


Comments

Popular posts from this blog

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -