Merge server state with origin/main (keep origin version)
This commit is contained in:
11
.dockerignore
Normal file
11
.dockerignore
Normal file
@@ -0,0 +1,11 @@
|
||||
.venv
|
||||
__pycache__
|
||||
*.pyc
|
||||
*.pyo
|
||||
*.pyd
|
||||
*.db-shm
|
||||
*.db-wal
|
||||
.git
|
||||
.gitignore
|
||||
Dockerfile*
|
||||
docker-compose*.yml
|
||||
2
.env.example
Normal file
2
.env.example
Normal file
@@ -0,0 +1,2 @@
|
||||
# Copy to .env and set your own value
|
||||
SECRET_KEY=replace-with-a-long-random-string
|
||||
@@ -14,4 +14,4 @@ RUN mkdir -p /app/data /app/static/img
|
||||
|
||||
EXPOSE 4545
|
||||
|
||||
CMD ["gunicorn", "-c", "gunicorn_conf.py", "app:app"]
|
||||
CMD ["gunicorn", "-c", "gunicorn_conf.py", "app:app"]
|
||||
|
||||
BIN
__pycache__/app.cpython-314.pyc
Normal file
BIN
__pycache__/app.cpython-314.pyc
Normal file
Binary file not shown.
2
app.py
2
app.py
@@ -252,4 +252,4 @@ def health():
|
||||
|
||||
if __name__ == "__main__":
|
||||
init_db()
|
||||
app.run(debug=True)
|
||||
app.run(debug=True)
|
||||
|
||||
BIN
data/infra.db
Normal file
BIN
data/infra.db
Normal file
Binary file not shown.
2
data/leads.csv
Normal file
2
data/leads.csv
Normal file
@@ -0,0 +1,2 @@
|
||||
created_at,name,company,phone,email,city,computers,message
|
||||
2026-02-12T16:33:08,Иван,ООО Тест,123,,,10,
|
||||
|
@@ -17,4 +17,4 @@ services:
|
||||
interval: 20s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 20s
|
||||
start_period: 20s
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import multiprocessing
|
||||
|
||||
bind = "0.0.0.0:4545"
|
||||
workers = 4
|
||||
workers = max(4, multiprocessing.cpu_count() * 2)
|
||||
threads = 4
|
||||
timeout = 60
|
||||
graceful_timeout = 30
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
Flask==3.1.0
|
||||
gunicorn==23.0.0
|
||||
gunicorn==23.0.0
|
||||
|
||||
4
static/img/README.txt
Normal file
4
static/img/README.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
Положите файл логотипа сюда:
|
||||
static/img/infrait-logo.png
|
||||
|
||||
Текущий шаблон уже подключен к этому пути.
|
||||
@@ -20,4 +20,4 @@
|
||||
item.style.transition = `opacity .45s ease ${index * 0.03}s, transform .45s ease ${index * 0.03}s`;
|
||||
observer.observe(item);
|
||||
});
|
||||
})();
|
||||
})();
|
||||
|
||||
@@ -74,4 +74,4 @@
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
@@ -34,4 +34,4 @@
|
||||
<script src="{{ url_for('static', filename='js/main.js') }}"></script>
|
||||
{% block scripts %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
@@ -336,4 +336,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user