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

rename an inv task + add switching branch command #3473

Merged
merged 2 commits into from Aug 1, 2019

Conversation

@patjouk
Copy link
Collaborator

commented Jul 31, 2019

  • Rename nuke_db to new_db for clarity: use this command if you broke your DB and want a new DB with fake data,
  • Add a inv docker-switching-branch command: deletes the previous DB, creates a new one with fake data and rebuilds the images (install dependencies). The goal is to make switching from branches to branches easier by preventing using an old DB incompatible with your current code.

Documentation:

  • Is my code documented?
  • Did I update the READMEs or wagtail documentation?

@patjouk patjouk requested review from alanmoo, mmmavis and youriwims Jul 31, 2019

@patjouk patjouk temporarily deployed to foundation-mofostaging-pr-3473 Jul 31, 2019 Inactive

@@ -28,9 +28,10 @@ The general workflow is:
docker-manage Shorthand to manage.py. inv docker.manage "[COMMAND] [ARG]"
docker-migrate Updates database schema
docker-npm Shorthand to npm. inv docker.npm "[COMMAND] [ARG]"
docker-nuke-db Delete your database and create a new one with fake data
docker-new-db Delete your database and create a new one with fake data

This comment has been minimized.

Copy link
@youriwims

youriwims Jul 31, 2019

Contributor

👏

@mmmavis
Copy link
Member

left a comment

Makes sense to me!

@patjouk patjouk merged commit 0f2c1ee into master Aug 1, 2019

2 of 3 checks passed

percy/foundation.mozilla.org 2 visual changes need review
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
coverage/coveralls Coverage remained the same at 76.817%
Details

@patjouk patjouk deleted the update-inv-task branch Aug 1, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.