Skip to content

Commit

Permalink
Make db:setup not hang when database requires password
Browse files Browse the repository at this point in the history
  • Loading branch information
ragurney committed Jan 26, 2018
1 parent 3dc4f7f commit 281fa61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ echo
bold "Copying example files"
try "Creating .env" "test -e .env || (test -e custom/.env.bootstrap && cp custom/.env.bootstrap .env) || cp .env.bootstrap .env"
try "Creating config/database.yml" "test -e config/database.yml || (test -e custom/database.yml && cp custom/database.yml config/database.yml) || cp config/database.mysql.yml.example config/database.yml"
try "Creating databases" "(test -e custom/seeds.rb && cp -f custom/seeds.rb db/seeds.rb) && false || bundle exec rake db:setup > /dev/null"
try "Creating databases" "(test -e custom/seeds.rb && cp -f custom/seeds.rb db/seeds.rb) && false || (echo 'no pass' | bundle exec rake db:setup)"

echo
bold "Success!"

0 comments on commit 281fa61

Please sign in to comment.