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

explore post deployment hook for custom seeding #80

Open
rooiss opened this issue Mar 26, 2024 · 0 comments
Open

explore post deployment hook for custom seeding #80

rooiss opened this issue Mar 26, 2024 · 0 comments

Comments

@rooiss
Copy link
Collaborator

rooiss commented Mar 26, 2024

  • currently when making changes to any of our data we are manually having to seed after making changes
    • this isn't the best option, as it will make other branches potentially break if someone is working on any of our data
  • vercel has post deployment hooks that can be configured to run a custom seed script based on the name of a branch
    • going this route would involve creating different seeding scripts
    • an example of it would be (not sure if this is how the scripting language in vercel is but this is just pseudocode)
      if [ "$BRANCH" = "feature/xyz" ]; then
          npm run seed:feature-xyz
      elif [ "$BRANCH" = "test" ]; then
          npm run seed:test
      else
          npm run seed:default
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