playmak3r commited on
Commit
744c405
·
1 Parent(s): b9ac4a3

Update shell script

Browse files
Files changed (1) hide show
  1. server/start.sh +6 -3
server/start.sh CHANGED
@@ -1,8 +1,11 @@
1
  #!/bin/bash
2
 
3
- whoami
 
4
 
5
- service redis-server start
6
- service redis-server status
 
 
7
 
8
  python app.py
 
1
  #!/bin/bash
2
 
3
+ set -e # Para o script se algum comando falhar
4
+ #whoami
5
 
6
+ # Inicia o Redis em background
7
+ redis-server --daemonize yes
8
+ sleep 2
9
+ redis-cli ping
10
 
11
  python app.py