Leverage bin/setup within script/setup

And remove duplicate output. `bin/setup` is the Rails default for
updating your environment after code updates and `script/setup` is our
convenience script for the initial setup and starting with sample data.
This commit is contained in:
Maikel Linke
2023-03-20 12:40:45 +11:00
parent 477524039f
commit 08f2254a0e

View File

@@ -30,14 +30,8 @@ fi
# Install used Bundler version
./script/install-bundler
# Install all dependencies
bundle check || bundle install
yarn install
# Set up the database for both development and test
# Confirming the default user and password
printf '\n\n' | bundle exec rake db:setup db:test:prepare
printf '\n'
# Install dependencies, prepare database and tidy
./bin/setup
# Load some default data for your environment
bundle exec rake ofn:sample_data