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

feat: don't run Tokenserver migrations on startup #1286

Merged
merged 9 commits into from
Apr 25, 2022

Conversation

ethowitz
Copy link
Contributor

Description

Since we're connecting to the pre-existing Tokenserver database, we should not be running the migrations on server startup.

@ethowitz ethowitz requested a review from a team April 21, 2022 22:44
@@ -44,10 +44,13 @@ python:
venv/bin/python -m pip install -r requirements.txt

run: python
PATH=./venv/bin:$(PATH) RUST_LOG=debug RUST_BACKTRACE=full cargo run -- --config config/local.toml
PATH="./venv/bin:$(PATH)" RUST_LOG=debug RUST_BACKTRACE=full cargo run -- --config config/local.toml
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fixes an unrelated bug that causes make run to fail if an item in your path has any whitespace characters in it.

Copy link
Member

@pjenvey pjenvey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs the e2e tests in CI to run them

@ethowitz
Copy link
Contributor Author

Removed the tokenserver_migrate make task since the migrations will run automatically for any non-release build

pjenvey
pjenvey previously approved these changes Apr 22, 2022
@ethowitz ethowitz merged commit 1a197a6 into master Apr 25, 2022
@ethowitz ethowitz deleted the feat/dont-run-tokenserver-migrations-on-startup branch April 25, 2022 17:47
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

Successfully merging this pull request may close these issues.

3 participants