ivelin commited on
Commit
d9c5c91
·
1 Parent(s): 134af2f

build: add ec2 service startup script

Browse files

Signed-off-by: ivelin <[email protected]>

Files changed (2) hide show
  1. start-ec2-service.sh +10 -0
  2. start-service.sh +10 -0
start-ec2-service.sh ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ echo "Starting a service on a aws ec2 instance"
2
+ echo "Start this script within tmux session in order to keep it running after the EC2 console closes"
3
+ source activate pytorch
4
+ cd ui-refexp-click/
5
+ pip3 install -r requirements.txt
6
+ python3 -m app
7
+ echo "\n\n\n-----\n\n\n"
8
+ echo "Press CTRL+B then D to detach from terminal without killing the app"
9
+ echo "Then use 'tmux attach' to reconnect to the virtual terminal"
10
+
start-service.sh ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ echo "Starting a service on a aws ec2 instance"
2
+ echo "Start this script within tmux session in order to keep it running after the EC2 console closes"
3
+ source activate pytorch
4
+ cd ui-refexp-click/
5
+ pip3 install -r requirements.txt
6
+ python3 -m app
7
+ echo "\n\n\n-----\n\n\n"
8
+ echo "Press CTRL+B then D to detach from terminal without killing the app"
9
+ echo "Then use 'tmux attach' to reconnect to the virtual terminal"
10
+