Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
S3 Plugin for BrowserCMS
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
roboyak  
View profile  
 More options Dec 20 2011, 4:43 pm
From: roboyak <sh...@layer3dev.com>
Date: Tue, 20 Dec 2011 13:43:55 -0800 (PST)
Local: Tues, Dec 20 2011 4:43 pm
Subject: S3 Plugin for BrowserCMS
Its it possible to get BrowserCMS to upload images to Amazon S3 CDN in
order to prevent the need to store images across each application
instance?

Thanks!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Patrick Peak  
View profile  
 More options Dec 20 2011, 4:45 pm
From: Patrick Peak <pea...@gmail.com>
Date: Tue, 20 Dec 2011 16:45:52 -0500
Local: Tues, Dec 20 2011 4:45 pm
Subject: Re: [BrowserCMS] S3 Plugin for BrowserCMS

Have you looked at http://rubygems.org/gems/bcms_s3 ?

In general, searching Rubygems.org (or github) for bcms_ will turn up a number of modules that the community has worked on.

- Patrick

On Dec 20, 2011, at 4:43 PM, roboyak wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
roboyak  
View profile  
 More options Dec 20 2011, 4:50 pm
From: roboyak <sh...@layer3dev.com>
Date: Tue, 20 Dec 2011 13:50:52 -0800 (PST)
Local: Tues, Dec 20 2011 4:50 pm
Subject: Re: S3 Plugin for BrowserCMS
Hi Patrick I saw this but wasn't sure if it was endorsed/recommended
by the BCMS people. Most of the newer CMS's have this feature built
in.

I will check it out though.

Thanks!

On Dec 20, 1:45 pm, Patrick Peak <pea...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Patrick Peak  
View profile  
 More options Dec 20 2011, 4:53 pm
From: Patrick Peak <pea...@gmail.com>
Date: Tue, 20 Dec 2011 16:53:55 -0500
Local: Tues, Dec 20 2011 4:53 pm
Subject: Re: [BrowserCMS] Re: S3 Plugin for BrowserCMS
I don't know if I would consider it 'endorsed' per se, but its something that we have used for projects.

In general, unless some feature is going to be used on nearly ALL projects (like S3) we generally take the approach of leaving things as modules (similar to how Drupal handles them). It also lets the community create and maintain modules at their own pace.

- Patrick

On Dec 20, 2011, at 4:50 PM, roboyak wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
roboyak  
View profile  
 More options Dec 20 2011, 4:55 pm
From: roboyak <sh...@layer3dev.com>
Date: Tue, 20 Dec 2011 13:55:14 -0800 (PST)
Local: Tues, Dec 20 2011 4:55 pm
Subject: Re: S3 Plugin for BrowserCMS
Thats good enough for me. Thanks!

On Dec 20, 1:53 pm, Patrick Peak <pea...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
roboyak  
View profile   Translate to Translated (View Original)
 More options Jan 11, 12:31 pm
From: roboyak <sh...@layer3dev.com>
Date: Wed, 11 Jan 2012 09:31:54 -0800 (PST)
Local: Wed, Jan 11 2012 12:31 pm
Subject: Re: S3 Plugin for BrowserCMS
So I've installed the bcms_s3 gem and patched the intializer/
browsercms.rb according to this post:

https://github.com/aunderwo/bcms_s3/issues/6

But when I attached a file it still uploads it to the normal local
system file using paperclip, here is a snip from rails output:

[paperclip] Saving attachments.
[paperclip] deleting /var/www/app/public/system/imgs/12/original/
1_cheese.jpg
[paperclip] saving /var/www/app/public/system/imgs/12/original/
1_cheese.jpg

Gemfile added:

gem "bcms_s3"
gem "right"aws"

Here is my initializer:

<---- snip [config/initializers/browsercms.rb]----->
Cms.attachment_file_permission = 0640

# Enable Amazon S3 for Content Storage
Cms::S3.enabled = true

Cms::AttachmentsController.send(:include,
Cms::S3::AttachmentsController)
Cms::ContentController.send(:include, Cms::S3::ContentController)
Attachment.send(:include, Cms::S3::Attachment)
Cms::ApplicationController.send(:include,
Cms::S3::ApplicationController)

# ensure S3 storage disabled by default
Cms::S3.enabled = false if Cms::S3.enabled.nil?

# ensure heroku caching disabled by default
Cms::S3.heroku_caching = false if Cms::S3.heroku_caching.nil?

# function to set domain prefix without url to 'www' is disabled by
default
Cms::S3.www_domain_prefix = false if Cms::S3.www_domain_prefix.nil?

# load s3 options if s3.yml exists
if File.exists?("#{RAILS_ROOT}/config/s3.yml")
  yaml_string = IO.read("#{RAILS_ROOT}/config/s3.yml")
  Cms::S3.options = YAML::load(ERB.new(yaml_string).result)
  Cms::S3.options.symbolize_keys!
end

puts "S3 ENABLED: " + Cms::S3.enabled.to_s

<--- snip ---->

also my S3.yml file is in /config:

<--- snip [S3.yml] ----->

access_key_id: #######################
secret_access_key: ##############################
bucket: testbucket
s3_cname: "https://s3-us-west-1.amazonaws.com/testbucket/"

<---- snip ----->

Any ideas on how I can debug this?

Thanks!

shawn

On Dec 20 2011, 1:55 pm, roboyak <sh...@layer3dev.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »