forked from mislav/will_paginate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix installing [email protected] via Homebrew
- Loading branch information
Showing
2 changed files
with
9 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 '[email protected]', restart_service: true | ||
brew 'postgresql', restart_service: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 [email protected])/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 | ||
|