mirror of
https://github.com/moparisthebest/mailiverse
synced 2024-12-22 05:18:48 -05:00
22 lines
360 B
Plaintext
Executable File
22 lines
360 B
Plaintext
Executable File
if [ -z "$1" ]; then echo "Must supply name"; exit 0; fi
|
|
|
|
source ./config.hosts
|
|
server=$M_HOST_PROD
|
|
|
|
echo stopping...
|
|
ssh $1@$server "cd deploy && ./shutdown"
|
|
|
|
sleep 2
|
|
|
|
echo starting...
|
|
ssh $1@$server "cd deploy && ./run"
|
|
|
|
echo tailing...
|
|
sleep 2
|
|
ssh $1@$server "tail run.log"
|
|
|
|
echo ...
|
|
echo "***** remember to restart mail-user if you restart-james *****"
|
|
|
|
|