Giter Site home page Giter Site logo

Comments (2)

mjhea0 avatar mjhea0 commented on July 20, 2024

Are there any errors in the logs?

docker-compose logs -f

from fastapi-crud-async.

adriacabeza avatar adriacabeza commented on July 20, 2024

I do not know what I did, but I think that restarting everything made it work. Just in case somebody goes through the same problem, here you can see the logs (which do not state any problem):

docker-compose logs -f
Attaching to fastapi-crud-async_web_1, fastapi-crud-async_db_1
db_1   |
db_1   | PostgreSQL Database directory appears to contain a database; Skipping initialization
db_1   |
db_1   | 2020-06-26 12:40:34.443 UTC [1] LOG:  starting PostgreSQL 12.1 on x86_64-pc-linux-musl, compiled by gcc (Alpine 9.2.0) 9.2.0, 64-bit
db_1   | 2020-06-26 12:40:34.446 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
db_1   | 2020-06-26 12:40:34.446 UTC [1] LOG:  listening on IPv6 address "::", port 5432
db_1   | 2020-06-26 12:40:34.451 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_1   | 2020-06-26 12:40:34.494 UTC [21] LOG:  database system was shut down at 2020-06-26 10:09:07 UTC
db_1   | 2020-06-26 12:40:34.536 UTC [1] LOG:  database system is ready to accept connections
web_1  | INFO:     Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
web_1  | INFO:     Started reloader process [1]
web_1  | INFO:     email-validator not installed, email fields will be treated as str.
web_1  | To install, run: pip install email-validator
web_1  | INFO:     Started server process [7]
web_1  | INFO:     Waiting for application startup.
web_1  | INFO:     Connected to database postgresql://hello_fastapi:********@db/hello_fastapi_dev
web_1  | INFO:     Application startup complete.

Thanks either way!

from fastapi-crud-async.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.