Last active
December 25, 2015 05:09
-
-
Save devopsmariocom/6922636 to your computer and use it in GitHub Desktop.
Install Homebrew package manager
!!!! First install command line tools https://developer.apple.com/downloads/index.action
This file contains hidden or 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
#!/bin/sh | |
# then follow install brew | |
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" | |
brew doctor |
This file contains hidden or 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
#!/bin/sh | |
# Install rvm | |
rvm implode # will remove current rvm | |
rm ~/.rvmrc | |
\curl -L https://get.rvm.io | bash | |
source ~/.rvm/scripts/rvm | |
# Install ruby | |
rvm install ruby-1.8.6-head --rubygems 1.3.5 | |
chown -R $USER ~/.rvm | |
rvm use ruby-1.8.6-head@rails123 --create | |
rvm alias create default ruby-1.8.6-head@rails123 | |
patch ~/.rvm/rubies/ruby-1.8.6-head/lib/ruby/1.8/logger.rb < bin/install/patches/fix_logger.patch # fix logger issue by patch | |
# Install mysql | |
brew install mysql | |
mkdir -p ~/Library/LaunchAgents | |
ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents | |
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist | |
# Install mongodb | |
brew install mongodb | |
ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents | |
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist | |
# Install memcached | |
brew install memcached | |
ln -sfv /usr/local/opt/memcached/*.plist ~/Library/LaunchAgents | |
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.memcached.plist | |
# Install supporting libraries | |
brew install imagemagick | |
brew install ghostscript |
This file contains hidden or 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
#!/bin/sh | |
# Install required gems | |
rvm --force gemset empty global | |
rvm --force gemset empty rails123 | |
bin/install/gems.sh | |
# Setup db | |
bin/get_clean_db.sh | |
# Start server | |
cp config/unicorn.rb.example config/unicorn.rb | |
unicorn_rails -c config/unicorn.rb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment