Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 8 lines (6 sloc) 174 Bytes
#!/bin/bash
sudo su nodester
export OLDAPP=$APP
export APP=$0;
echo "require('./app').restart_by_name(${APP},function(){console.log(arguments);})" | node
export APP=$OLDAPP