mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
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:
10
script/setup
10
script/setup
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user