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
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
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
Create your development database
bundle exec rake db:setup
- 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