Skip to content

STRd6/pixieengine.com

Repository files navigation

README

This README would normally document whatever steps are necessary to get the application up and running.

Things you may want to cover:

  • Ruby version

    • 2.4.9
  • System dependencies

    • Redis

    • Postgres

  • Configuration

  • How to run the test suite

    • rails test
  • Services (job queues, cache servers, search engines, etc.)

  • Production Dependencies

    • Heroku

    • Mailgun

    • Heroku Postgres

    • Heroku Redis

  • Deployment instructions

OSX Dev setup

Install Homebrew if you don't already have it

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install postgresql if you don't have it

  • brew install postgresql
  • brew services start postgresql

Install ImageMagick so that you can install RMagick. If you're on OSX Sierra, you'll need to force an older version of ImageMagick

  • brew install imagemagick@6
  • brew link --force imagemagick@6

Install all the project's dependencies with bundle install

Ubuntu Setup

sudo apt-get install -y build-essential patch ruby-dev zlib1g-dev liblzma-dev imagemagick libmagickwand-dev postgresql libpq-dev
sudo service postgresql start
sudo su - postgres
createuser --interactive --createdb $USER
exit

First time configuration

Create your development database

bundle exec rake db:setup

Syncing your local db with prod

  1. Install the Heroku CLI
  2. Log in to the CLI
  3. Make sure you have added the heroku remote for this project
  4. Run script/sync-db-with-prod