Skip to content

Instantly share code, notes, and snippets.

@assafshomer
Last active January 4, 2016 15:41
Show Gist options
  • Save assafshomer/a252d23cfd4b1d11fb3c to your computer and use it in GitHub Desktop.
Save assafshomer/a252d23cfd4b1d11fb3c to your computer and use it in GitHub Desktop.
Sharetribe on Heroku

Deploying Sharetribe to Heroku

clone and push

  git clone repo <dirname>
  cd <dirname>
  git checkout <branch>
  heroku create
  git push heroku <branch>:master

Env vars

Set all required env vars in config.yml, then run

  rake heroku:config

This will set the corresponding env vars on heroku

  heroku addons:destroy heroku-postgresql
  heroku addons:create memcachier:dev
  heroku addons:create ssl:endpoint
  heroku addons:create flying_sphinx:ceramic
  heroku addons:create cleardb:ignite
  heroku addons:create sendgrid:starter
  heroku config:add DATABASE_URL='mysql2://'$(echo $(heroku config:get CLEARDB_DATABASE_URL) | cut -c 9-)
  heroku run bundle exec rake db:schema:load
  heroku addons:create scheduler:standard
  heroku addons:open scheduler

And add the following jobs

Job Frequency
flying-sphinx index hourly
rails runner "CommunityMailer.deliver_community_updates" Daily
rake sharetribe:delete_expired_auth_tokens Daily
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment