Skip to content

rubyrogues/rubyfriends

Repository files navigation

#RubyFriends

Smile for the camera!

Take pictures with all your friends in the Ruby community and post them to twitter with the #RubyFriends hashtag. We'll display them on our ongoing list of happy meetings in the Ruby world.

Check out all our wonderful #RubyFriends.

Contributing

  1. Fork it

  2. Setup development environment

bundle install
bundle exec rake bootstrap
  1. Configure
# edit config/application.yml (not version-controlled)
# 1) change the SECRET_TOKEN
bundle exec rake secret
# 2) add twitter credentials
# see https://github.com/sferik/t for getting your twitter credentials
# at http://dev.twitter.com/apps
# optionally configure whether to retweet 
# or whether to restrict to tweets with media, only
  1. Test everything is set up correctly by running
bundle exec rake db:migrate db:test:prepare spec
bundle exec rake refresh_tweets
bundle exec foreman start
  1. Create your feature branch
git checkout -b my-new-feature
  1. Commit your changes
git commit -am 'Added some feature'
  1. Run the specs
bundle exec rake spec
  1. Push to the branch
git push origin my-new-feature
  1. Create a pull request

Heroku Configuration

heroku addons:add newrelic:standard
# if not using aws s3 for image hosting
  heroku addons:add cloudinary:starter 
  # edit application.yml
  # file_storage: cloudinary
# else file_storage: s3 and set s3 keys
heroku addons:add memcachier:dev # memcached
# the Gemfile should automatically require
# the 'cloudinary' gem
# if the service is  configured
bundle exec rake figaro:heroku
# if not using a worker
  heroku addons:add scheduler:standard
  heroku addons:open scheduler
  # schedule every 10 minutes
  # bundle exec rake refresh_tweets
git push heroku master
heroku run rake db:migrate
heroku logs # check that it's working
heroku run rake refresh_tweets

Thanks

About

Ruby Friends - smile for the camera; In progress

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published