community engine, S3, Heroku

1) clone the source code from

https://github.com/bborn/ce-heroku

2) build and deploye to heroku

3) add addon sendgrid to your application
4)made necessary changes in application_config.rb

example

:app_host => ‘your hostname’,
:community_name => “your community name”,
:s3_credentials => {
:access_key_id => ENV[“S3_KEY”],
:secret_access_key => ENV[“S3_SECRET”]
},
:bucket => ENV[‘S3_BUCKET’],

5) add following too application_config.rb

:s3_protocol=> “https”,
:url=>”:s3_domain_url”,
:default_url=> “:attachment/:id_:style.:extension”,
:support_email => “your@email.com”,

6) add configure values

heroku config:set S3_KEY=”your key”
heroku config:set S3_SECRET=”your secret”
heroku config:set S3_BUCKET=”your bucket”

Advertisements
This entry was posted in ruby on rails and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s