diff --git a/Scripts.py b/Scripts.py index 2017899..a1482e6 100755 --- a/Scripts.py +++ b/Scripts.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!env/bin/python3.10 # -*- coding: UTF-8 -*- import sys #для работы с аргументами diff --git a/StartServer.py b/StartServer.py index 0df378e..4bb96b1 100755 --- a/StartServer.py +++ b/StartServer.py @@ -1,3 +1,4 @@ +#!env/bin/python3.10 from app import app if __name__ == '__main__': #app.run(debug=True,ssl_context=('LinuxServer.crt','rootCA.key',3)) diff --git a/app/__init__.py b/app/__init__.py index 435a74c..0bb69cb 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!env/bin/python3.10 # -*- coding: UTF-8 -*- #активация FLASK diff --git a/app/templates/rustdesk.htm b/app/templates/rustdesk.htm index 52a72b6..19245d8 100644 --- a/app/templates/rustdesk.htm +++ b/app/templates/rustdesk.htm @@ -30,8 +30,8 @@
1. Зайти и скачать дистрибутив с сайта RustDesk или скачать:
diff --git a/app/views.py b/app/views.py index 13afc63..f863b60 100644 --- a/app/views.py +++ b/app/views.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!env/bin/python3.10 # -*- coding: UTF-8 -*- #Активация FLASK @@ -33,7 +33,7 @@ import gzip #Глобальные переменные ProgName = app.config['PROGNAME'] -version = "0.0.1" +version = app.config['VERSION'] LevelA="" Flag=False diff --git a/config.py b/config.py index 6e0d760..8ada2fa 100644 --- a/config.py +++ b/config.py @@ -4,16 +4,13 @@ COMPRESS_MIN_SIZE = 500 CSRF_ENABLED = True SECRET_KEY = 'fc46ds6B4ds56gdr46gggrdyjdsith8dt34t43ct4fa05FA6489er679g' - UPLOAD_FOLDER = 'app/temp' #Куда сохранять загруженные файлы +VERSION = 0.1.2 PROGNAME= "ИТ-специалист в Ижевске" #основное имя приложения SHMNAME="mainsite" #папка на виртуальном диске MAX_CONTENT_LENGTH= 1 * 1024 * 1024 #максимальный размер файла - - - #def configure_app(app): # Configure Compressing # Compress(app) diff --git a/shell/1-CheckSystem.sh b/shell/1a-CheckSystem.sh similarity index 100% rename from shell/1-CheckSystem.sh rename to shell/1a-CheckSystem.sh diff --git a/shell/1b-Install virtualenv.sh b/shell/1b-Install virtualenv.sh new file mode 100755 index 0000000..2f3ee24 --- /dev/null +++ b/shell/1b-Install virtualenv.sh @@ -0,0 +1,3 @@ +#!/bin/bash +pip install virtualenv +python3 -m venv env diff --git a/shell/1c-InstallPackets.sh b/shell/1c-InstallPackets.sh new file mode 100755 index 0000000..d050827 --- /dev/null +++ b/shell/1c-InstallPackets.sh @@ -0,0 +1,9 @@ +#!/bin/bash +# Активируем виртуальное окружение +source env/bin/activate +pip install --upgrade pip + +pip install -r r.txt + +# Отключаем виртуальное окружение +deactivate \ No newline at end of file diff --git a/shell/r.txt b/shell/r.txt new file mode 100644 index 0000000..ced5f24 --- /dev/null +++ b/shell/r.txt @@ -0,0 +1,3 @@ +Flask +Flask-Compress +gunicorn