File size: 389 Bytes
d9c5c91
 
 
 
0fed412
d9c5c91
 
 
1
2
3
4
5
6
7
8
9
echo "Starting a service on a aws ec2 instance"
echo "Start this script within tmux session in order to keep it running after the EC2 console closes"
source activate pytorch
pip3 install -r requirements.txt
python3 -m app
echo "\n\n\n-----\n\n\n"
echo "Press CTRL+B then D to detach from terminal without killing the app"
echo "Then use 'tmux attach' to reconnect to the virtual terminal"