-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration startup Heroku
I made this document as a fast forward start for the options you need to configure after Heroku deployment.
Create an app for each Oauth provider and insert the values accordingly in the commands below
Enter the console using:
heroku run console --remote remotename
You can use the --remote option if you have multiple heroku environments tracking from the same repo
Enter the following for the different Oauth providers, you need to create an app from each provider. Replace the myconsumerkey and the myconsumersecret with the values you get from the different providers.
OauthProvider.create :name => 'Twitter', :key => 'myconsumerkey', :secret => 'myconsumersecret', :strategy => 'Twitter', :path => 'twitter'
OauthProvider.create :name => 'Facebook', :key => 'myconsumerkey', :secret => 'myconsumersecret', :strategy => 'Facebook', :path => 'facebook'
OauthProvider.create :name => 'LinkedIn', :key => 'myconsumerkey', :secret => 'myconsumersecret', :strategy => 'LinkedIn', :path => 'linked_in'
Create or show your Paypal api information from your Paypal profile and insert the values accordingly in the commands below
Enter the console using
heroku run console --remote remotename
as usual if you have multiple environments, use the --remote option, otherwise leave it out
Configuration.create :name => 'paypal_username', :value => "api username"
Configuration.create :name => 'paypal_password', :value => "api password"
Configuration.create :name => 'paypal_signature', :value => "api signature"
Run the following from your app directory
heroku addons:add sendgrid:starter
heroku config --remote remotename
Copy username into appropriate location in /app/config/initializers/sendgrid.rb (it should be an heroku email address)
Copy the password into the value in the configuration command below and run heroku run console --remote remotename
as usual to enter the console via heroku
Configuration.create :name => 'sendgrid', :value => "key"
Setup MailChimp and a newsletter list for your newsletter and input the key and list id appropriately in the commands below. Run them from the console
Configuration.create :name => 'mailchimp_api_key', :value => "key"
Configuration.create :name => 'mailchimp_list_id', :value => "list_id"
Create an account and add a project on airbrake.io and input the api-key for that project/site appropriately in the configuration command below
Configuration.create :name => 'airbrake_key', :value => "key"
Run heroku addons:add memcache
from your application directory
Test it out in the console(You might have to wait a minute or two for everything to kick in):
Rails.cache.write('color', 'red')
and after that:
Rails.cache.read('color')
This should return:
=> "red"