rrrrr
This commit is contained in:
@@ -80,13 +80,13 @@ echo -e "${YELLOW}🔧 [3/4] Updating HTTPS configuration in database...${NC}"
|
||||
|
||||
docker compose exec -T digiserver-app python << EOF
|
||||
from app.app import create_app
|
||||
from app.models.https_config import HttpsConfig
|
||||
from app.models.https_config import HTTPSConfig
|
||||
from app.extensions import db
|
||||
|
||||
app = create_app('production')
|
||||
with app.app_context():
|
||||
# Update or create HTTPS config for the new IP
|
||||
https_config = HttpsConfig.query.first()
|
||||
https_config = HTTPSConfig.query.first()
|
||||
|
||||
if https_config:
|
||||
https_config.hostname = '$HOSTNAME'
|
||||
|
||||
Reference in New Issue
Block a user