我使用postgres数据库,并使用uwsgi和nginx
部署我的django如果postgres服务没有在uwsgi和nginx之前运行,则会导致错误
conn = _connect(dsn, connection_factory=connection_factory, async=async)
django.db.utils.OperationalError: could not connect to server: Host is down
Is the server running on host "192.168.1.21" and accepting
TCP/IP connections on port 5432?
我想知道我可以重试启动nginx和uwsgi直到postgres服务运行吗?