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 imagemagick libmagickwand-dev postgresql libpq-dev
sudo service postgresql start
First time configuration
Create your development database
bundle exec rake db:setup
Syncing your local db with prod
- Install the Heroku CLI
- Log in to the CLI
- Make sure you have added the heroku remote for this project
- Run script/sync-db-with-prod