-
Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-
Update Homebrew
brew update
-
Install PostgreSQL
brew install postgres
-
Install Redis
brew install redis
-
Install ImageMagick
brew install imagemagick
-
Install Qt
brew install qt
-
Install the Heroku Toolbelt
brew install heroku-toolbelt
-
Install chruby
brew install chruby
-
Configure chruby
echo 'source /usr/local/share/chruby/chruby.sh' >> ~/.bash_profile echo 'source /usr/local/share/chruby/auto.sh' >> ~/.bash_profile source ~/.bash_profile
-
Install ruby-install
brew install ruby-install
-
Install Ruby
ruby-install ruby 2.2.2
-
Configure a default Ruby
echo '2.2.2' >> ~/.ruby-version
-
Clone the repository
git clone https://....git
-
Change the working directory
cd ......
-
Install Bundler
gem install bundler
-
Install the gem dependencies
bundle install --path vendor/bundle --without production staging
-
Stop any postgres services
`ps aux | grep postgres`
If postgres is running from brew: brew services stop postgresql
6 Create a Postgres database
pg_ctl init -D db/postgres
OR
/usr/lib/postgresql/9.3/bin/initdb -D db/postgres
-
Create a Redis directory
mkdir db/redis
-
Create and edit
config/database.yml
cp config/database.yml.example config/database.yml
-
Launch the system services
bundle exec foreman start -f Procfile.sys
-
Launch the application services
bundle exec foreman start -f Procfile.app
-
Visit the web application
open http://0.0.0.0.xip.io:5000
-
Visit the mailcatcher application
open http://localhost:1080