I think this thread belongs to our brasilian list :) Aswering your question, It would be better to use PM2 in the production enviroment and something like supervisor[1] in the dev env. Supervisor can reload your server on file changes.
1 - https://github.com/isaacs/node-supervisor -- Att, Alan Hoffmeister Em 15 de novembro de 2013 14:33, Alain Mouette <[email protected]> escreveu: > Lendo sobre o PM2 não ficou nem um pouco claro como usar durante o > desenvolvimento > > eu lembro que tem como recarregar a aplicação sempre que algum arquivo for > alterado, alguém pode dar um exemplo disso? > E como ele trata se der um erro, o que é provável durante uma edição > demorada em que nem sempre os arquivos salvos estão terminados? > > Grato, > > -- > > Alain > === Minha MesaXYZ: <http://mesa-reprap.blogspot.com.br/> === > > -- > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > --- You received this message because you are subscribed to the Google > Groups "nodejs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
