<NME> start.sh
<BEF> #!/bin/bash
# This is a very simple example
killall node
cd /home/ng-nice
node server.js >> /home/web-log/node-js/ngnice`date +%y%m%d`.log &
echo "`date +%T`" >> /home/web-log/node-js/ngnice.log


<MSG> 启动文件修改

<DFF> @@ -2,6 +2,6 @@
 # This is a very simple example
 killall node
 cd /home/ng-nice
-node server.js >> /home/web-log/node-js/ngnice`date +%y%m%d`.log &
+NODE_ENV=production node server.js >> /home/web-log/node-js/ngnice`date +%y%m%d`.log &
 echo "`date +%T`" >> /home/web-log/node-js/ngnice.log
 

启动文件修改