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

fix: Startup script does not always perform migrations #2246

Merged
merged 2 commits into from
Jul 5, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: Startup script does not always perform migrations
  • Loading branch information
vincent-pochet committed Jul 4, 2024
commit dcf0cd6d157730c2f7faca714fa613f6b3e6bea0
4 changes: 3 additions & 1 deletion scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ then
fi

rm -f ./tmp/pids/server.pid
bundle exec rails db:migrate:primary

if [ -v LAGO_CLICKHOUSE_ENABLED ] && [ "$LAGO_CLICKHOUSE_ENABLED" == "true" ]
then
bundle exec rails db:migrate:primary
bundle exec rake db:migrate:clickhouse
else
bundle exec rails db:migrate
fi

bundle exec rails signup:seed_organization
Expand Down