-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathSetup.bat
More file actions
29 lines (28 loc) · 783 Bytes
/
Copy pathSetup.bat
File metadata and controls
29 lines (28 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@echo Seting up S-din...
@python3 VenvSetup.py
@IF %ERRORLEVEL% NEQ 0 goto error
@.env\Scripts\python3 -m pip install --upgrade pip
@IF %ERRORLEVEL% NEQ 0 goto error
@cd tools
@..\.env\Scripts\pip install -r requirements.txt
@IF %ERRORLEVEL% NEQ 0 goto error
@..\.env\Scripts\python3 DbInit.py
@IF %ERRORLEVEL% NEQ 0 goto error
@cd ..\
@cd igem2017
@RD /S /Q sdin\migrations
@..\.env\Scripts\python3 manage.py makemigrations sdin
@IF %ERRORLEVEL% NEQ 0 goto error
@..\.env\Scripts\python3 manage.py migrate
@IF %ERRORLEVEL% NEQ 0 goto error
@..\.env\Scripts\python3 manage.py shell < init.py
@IF %ERRORLEVEL% NEQ 0 goto error
@cd ..\
@echo S-Din has successfully set up!
@echo please click runserver.bat to start the server
@pause
@exit
error:
@echo Set up has failed
@pause
@exit