Usually with configuration variables that you don't want to store in
git, you just add environment variables.

On Heroku: heroku config:add S3_KEY=SOMETHING
S3_SECRET=SOMETHINGSECRET
In your app: ENV['S3_KEY']

On Sep 29, 12:19 pm, Todd <[email protected]> wrote:
> I originally integrated paperclip and heroku following heroku's
> example here:http://docs.heroku.com/s3
>
> ie:
>     has_attached_file :paper,
>       :storage => :s3,
>       :s3_credentials => "#{RAILS_ROOT}/config/amazon_s3.yml",
>       :path => "papers/:id/:filename"
>
> I have recently started using github as my main git repository to
> collaborate with some friends. Because I added github as a remote, I
> removed config/amazon_s3.yml from my git repository.
>
> Is there an easy way to configure amazon_s3 for my project without
> adding in my configuration file?
>
> Perhaps one way is to do a production branch for heroku, and manage
> two remotes? I'm still learning git and this might be a good use to
> learn some of the advance features.
>
> Thanks,
>
> Todd

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to