fastruby/benchmark.fyi

[BUG] bin/setup script fails with yarn error and failed db:prepare

Opened this issue · 1 comments

Branch/Commit:

main branch

Expected behavior:

bin/setup should setup the application

Actual behavior:

It shows an error and fails to setup the application:

$ ./bin/setup 
== Installing dependencies ==
The Gemfile's dependencies are satisfied

== Preparing database ==
error Couldn't find an integrity file                                          
error Found 1 errors.                                                          


========================================
  Your Yarn packages are out of date!
  Please run `yarn install --check-files` to update.
========================================


To disable this check, please change `check_yarn_integrity`
to `false` in your webpacker config file (config/webpacker.yml).


yarn check v1.22.19
info Visit https://yarnpkg.com/en/docs/cli/check for documentation about this command.



== Command ["bin/rails db:prepare"] failed ==

Steps to reproduce:

  1. Step 1: Clone the repo
  2. Step 2: run bundle install
  3. Step 3: run ./bin/setup

I will abide by the [code of conduct] (https://github.com/fastruby/benchmark.fyi/blob/main/CODE_OF_CONDUCT.md)

after manually running yarn install, the bin/setup script fails to run due to missing database.yml config file.