Fixed deploy script to redirect log to file.

* Added nohup to prevent process exiting after logged out
* Command should redirect log into file instead of shell