wordpress / app.py
CatPtain's picture
Upload 2 files
4de31ce verified
raw
history blame
1.03 kB
#!/usr/bin/env python3
"""
Hugging Face Spaces compatibility file for WordPress
This file is required by HF Spaces but the actual application runs in Docker
"""
import subprocess
import time
import sys
import os
def main():
print("πŸš€ Starting WordPress on Hugging Face Spaces...")
print("This is a Docker-based WordPress deployment.")
print("The actual WordPress application is running in the Docker container.")
print("Access your WordPress site at the provided URL above.")
print("")
print("πŸ“‹ Default Login Information:")
print("Username: demo")
print("Password: demo123")
print("")
print("⚠️ Important: Change the default password after first login!")
print("")
# Keep the process alive
try:
while True:
time.sleep(60)
print(f"WordPress container is running... {time.strftime('%Y-%m-%d %H:%M:%S')}")
except KeyboardInterrupt:
print("Shutting down...")
sys.exit(0)
if __name__ == "__main__":
main()