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
brew install redis
.Set up database (we're using postgres)
/database.yml
), so that should not be a problem.rake db:create
rake db:schema:load
Start the servers
foreman start -f Procfile.development
Seed the database
rake db:seed
Easy as pie!
First might need to setup the test db.
rake db:test:prepare
Then just run the tests.
rspec
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 ¯_(ツ)_/¯
rake meetup_sync:users
Done on Heroku (https://devcenter.heroku.com/articles/getting-started-with-rails4#deploy-your-application-to-heroku)