Skip to content

Commit

Permalink
Fix installing mysql@5.6 via Homebrew
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Jun 7, 2017
1 parent 546d05c commit 3e1a366
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Brewfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
brew 'mongodb', restart_service: true
brew 'mysql56', restart_service: true
brew 'mysql@5.6', restart_service: true
brew 'postgresql', restart_service: true
13 changes: 8 additions & 5 deletions script/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
# vi:ft=sh:
set -e

brew bundle
if type -p brew >/dev/null; then
brew bundle --no-upgrade
export PATH="$(brew --prefix mysql@5.6)/bin:$PATH"

while [ ! -e /tmp/mysql.sock ] && [ ! -e /var/run/mysql5/mysqld.sock ]; do
echo "Waiting for mysql to start up ..." >&2
sleep 1
done
while [ ! -e /tmp/mysql.sock ] && [ ! -e /var/run/mysql5/mysqld.sock ]; do
echo "Waiting for mysql to start up ..." >&2
sleep 1
done
fi

mysql -u root -e 'CREATE DATABASE IF NOT EXISTS will_paginate;'
psql --dbname will_paginate -c '' 2>/dev/null || createdb will_paginate
Expand Down

0 comments on commit 3e1a366

Please sign in to comment.