atlanta-ember-org / atlanta-ember-backend

0 stars 0 forks source link

Atlanta Ember Backend API

CircleCI

Usage

Basic PR workflow

Getting started

Make sure you're running the right Ruby version (2.2.3 || see Gemfile)

Setup your environment with a .env file by moving /.env.example to /.env and fill in the values.

Install your gems

bundle install

Set up Redis

Set up database (we're using postgres)

Start the servers

Seed the database

rake db:seed

Testing

Easy as pie!

First might need to setup the test db.

rake db:test:prepare

Then just run the tests.

rspec

Side Processes

We use Sidekiq to run a worker for the syncing. Right now it's running every 10 minutes. Heroku doesn't like that. It would rather us let the dinos rest 6 hours a day and this process doesn't ¯_(ツ)_/¯

Sync tasks

Deployment

Done on Heroku (https://devcenter.heroku.com/articles/getting-started-with-rails4#deploy-your-application-to-heroku)