-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_site_backup.bat
49 lines (36 loc) · 1.03 KB
/
install_site_backup.bat
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
REM Create a virtual environment
echo Creating Python virtual environment...
py -m venv sslp_env
REM Activate the virtual environment
echo Activating Python virtual environment...
call sslp_env\Scripts\activate.bat
REM Upgrade pip
echo Upgrading pip...
py -m pip install --upgrade pip
REM Install packages from requirements.txt
echo Installing required Python packages...
pip install -r requirements.txt
REM Creating .env file
echo Creating .env file
py create_dot_env.py
REM Change directory to Django project
echo Changing directory to Django project...
cd SSLP_analyzer
REM Creating migrations
echo Creating migrations
py manage.py makemigrations
REM Applying migrations
echo Applying migrations
py manage.py migrate
REM Creating User
echo Creating User please create an account (Email is optional)
py manage.py createsuperuser
REM Run Django server
echo Starting Django server...
start /min py manage.py runserver
REM Open Chrome to Django URL
echo Opening Django URL in Chrome...
start chrome http://127.0.0.1:8000/
echo Done.
pause
exit