Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mention database migration in README #104

Open
Glutexo opened this issue Jan 17, 2019 · 0 comments
Open

Mention database migration in README #104

Glutexo opened this issue Jan 17, 2019 · 0 comments

Comments

@Glutexo
Copy link
Collaborator

Glutexo commented Jan 17, 2019

Before starting using the application it is necessary to run the database migrations. Otherwise there will be no hosts table and requests will fail.

Mention this in the README and provide a guide on how to initialize the database. This includes:

  • Create the database. This is probably done automatically when using Docker Compose.
  • Run the migrations with python manage.py upgrade. Don’t forget to set the INVENTORY_DB_NAME and other environment variables.
  • Mention that if using different a database for testing, the migration must be run for it too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant