Skip to content

Commit 6eefd6b

Browse files
committed
script to start server
1 parent 2c63cea commit 6eefd6b

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

init-server.sh

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#! /usr/bin/bash
2+
3+
: '
4+
Author: Nikhil Mohite
5+
GitHub: https://www.github.com/nkilm
6+
Date : 30-07-2022
7+
Description: Bash script to start server
8+
'
9+
10+
unameOut="$(uname -s)"
11+
case "${unameOut}" in
12+
MINGW*)
13+
cd "./backend-flask/" || return
14+
echo "Current Path: $(pwd)"
15+
pip install virtualenv
16+
virtualenv env
17+
.\\env\\Scripts\\activate
18+
pip install -r .\\requirements.txt
19+
sleep 0.5
20+
clear
21+
echo "Starting server on PORT 6060"
22+
python main.py
23+
;;
24+
*)
25+
echo 'Sorry, this Script is configured to run only on Windows Machines.'
26+
;;
27+
esac

0 commit comments

Comments
 (0)