Skip to content

Commit

Permalink
fix: Migration should perform when starting the api (getlago#1589)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-pochet authored Jan 8, 2024
1 parent 715eaa7 commit de57c28
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ then
fi

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

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

bundle exec rails signup:seed_organization
bundle exec rails s -b ::

0 comments on commit de57c28

Please sign in to comment.