Add voting deadline function

This commit is contained in:
2025-10-13 22:30:15 +08:00
parent afd5ecd89a
commit 6a50c9fe90
35 changed files with 3489 additions and 103 deletions
+3 -2
View File
@@ -76,8 +76,9 @@ echo "Database connection established!"\n\
# Initialize database if needed\n\
python -c "from db_setup import db_config_manager; db_config_manager.load_config(); db_config_manager._update_environment_variables()"\n\
\n\
# Start the application\n\
exec python main.py' > /app/start.sh && \
# Start the application with gunicorn\n\
echo "Starting application with gunicorn..."\n\
exec gunicorn --config gunicorn.conf.py main:app' > /app/start.sh && \
chmod +x /app/start.sh && \
chown appuser:appuser /app/start.sh