|
|
|
""" |
|
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("") |
|
|
|
|
|
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() |