<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,6 +3,8 @@ config/database.yml
 config/deploy.rb
 config/settings.yml
 config/newrelic.yml
+config/ey-cloud.yml
+config/s3.yml
 db/*.sqlite3
 db/schema.rb
 public/system</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -4,9 +4,13 @@ class Group &lt; ActiveRecord::Base
 
   has_attached_file :image,
                     :styles =&gt; { :thumb =&gt; '50x50#', :medium =&gt; &quot;200x150#&quot; },
+                    :storage =&gt; :s3,
+                    :s3_credentials =&gt; &quot;#{RAILS_ROOT}/config/s3.yml&quot;,
+                    :bucket =&gt;   S3_BUCKET,
+                    :path =&gt; &quot;news_items/&quot; &lt;&lt;
                     :default_url =&gt; &quot;/images/default_avatar.png&quot;,
-                    :path        =&gt; &quot;:rails_root/public/system/groups/:attachment/:id_partition/:basename_:style.:extension&quot;,
-                    :url         =&gt; &quot;/system/groups/:attachment/:id_partition/:basename_:style.:extension&quot;
+                    :path        =&gt; &quot;groups/:attachment/:id_partition/:basename_:style.:extension&quot;,
+                    :url         =&gt; &quot;groups/:attachment/:id_partition/:basename_:style.:extension&quot;
 
   def donations_for_pitch(pitch)
     donations.for_pitch(pitch).map(&amp;:amount).sum</diff>
      <filename>app/models/group.rb</filename>
    </modified>
    <modified>
      <diff>@@ -60,13 +60,16 @@ class NewsItem &lt; ActiveRecord::Base
   belongs_to :parent, :class_name =&gt; 'NewsItem', :foreign_key =&gt; &quot;news_item_id&quot;
   belongs_to :fact_checker, :class_name =&gt; 'User'
   has_many :comments, :as =&gt; :commentable, :dependent =&gt; :destroy
-
+  
   has_attached_file :featured_image,
                     :styles =&gt; { :thumb =&gt; '50x50#', :medium =&gt; &quot;200x150#&quot; },
-                    :path =&gt; &quot;:rails_root/public/system/news_items/&quot; &lt;&lt;
+                    :storage =&gt; :s3,
+                    :s3_credentials =&gt; &quot;#{RAILS_ROOT}/config/s3.yml&quot;,
+                    :bucket =&gt;   S3_BUCKET,
+                    :path =&gt; &quot;news_items/&quot; &lt;&lt;
                              &quot;:attachment/:id_partition/&quot; &lt;&lt;
                              &quot;:basename_:style.:extension&quot;,
-                    :url =&gt;  &quot;/system/news_items/:attachment/:id_partition/&quot; &lt;&lt;
+                    :url =&gt;  &quot;news_items/:attachment/:id_partition/&quot; &lt;&lt;
                              &quot;:basename_:style.:extension&quot;,
                     :default_url =&gt; &quot;/images/featured_images/missing_:style.png&quot;
 </diff>
      <filename>app/models/news_item.rb</filename>
    </modified>
    <modified>
      <diff>@@ -115,13 +115,16 @@ class User &lt; ActiveRecord::Base
   before_validation_on_create :generate_activation_code
   before_save :encrypt_password, :unless =&gt; lambda {|user| user.password.blank? }
   after_create :register_user_to_fb
-
+  
   has_attached_file :photo,
                     :styles      =&gt; { :thumb =&gt; '50x50#' },
-                    :path        =&gt; &quot;:rails_root/public/system/profiles/&quot; &lt;&lt;
+                    :storage =&gt; :s3,
+                    :s3_credentials =&gt; &quot;#{RAILS_ROOT}/config/s3.yml&quot;,
+                    :bucket =&gt;   S3_BUCKET,
+                    :path        =&gt; &quot;profiles/&quot; &lt;&lt;
                                     &quot;:attachment/:id_partition/&quot; &lt;&lt;
                                     &quot;:basename_:style.:extension&quot;,
-                    :url         =&gt; &quot;/system/profiles/:attachment/:id_partition/&quot; &lt;&lt;
+                    :url         =&gt; &quot;profiles/:attachment/:id_partition/&quot; &lt;&lt;
                                     &quot;:basename_:style.:extension&quot;,
                     :default_url =&gt; &quot;/images/default_avatar.png&quot;
 </diff>
      <filename>app/models/user.rb</filename>
    </modified>
    <modified>
      <diff>@@ -35,3 +35,4 @@ end
 
 PAYPAL_POST_URL = &quot;https://www.sandbox.paypal.com/cgi-bin/webscr&quot;
 PAYPAL_EMAIL = &quot;info+s_1240233800_per@spot.us&quot;
+S3_BUCKET = &quot;spotus-development-storage&quot;</diff>
      <filename>config/environments/development.rb</filename>
    </modified>
    <modified>
      <diff>@@ -19,3 +19,4 @@ config.after_initialize do
 end
 PAYPAL_POST_URL = &quot;https://www.paypal.com/cgi-bin/webscr&quot;
 PAYPAL_EMAIL = &quot;info@spot.us&quot;
+S3_BUCKET = &quot;spotus-production-storage&quot;
\ No newline at end of file</diff>
      <filename>config/environments/production.rb</filename>
    </modified>
    <modified>
      <diff>@@ -22,3 +22,4 @@ end
 
 PAYPAL_POST_URL = &quot;https://www.sandbox.paypal.com/cgi-bin/webscr&quot;
 PAYPAL_EMAIL = &quot;info+s_1240233800_per@spot.us&quot;
+S3_BUCKET = &quot;spotus-staging-storage&quot;
\ No newline at end of file</diff>
      <filename>config/environments/staging.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>594ab4b8e7d24dead7aeb7fb4a49e1aceb2d2fa9</id>
    </parent>
  </parents>
  <author>
    <name>Dan Newman</name>
    <email>dpnewman@gmail.com</email>
  </author>
  <url>http://github.com/spot-us/spot-us/commit/7d7c692cca21de1294fac495762b5064f82c826f</url>
  <id>7d7c692cca21de1294fac495762b5064f82c826f</id>
  <committed-date>2009-11-09T17:58:01-08:00</committed-date>
  <authored-date>2009-11-09T17:58:01-08:00</authored-date>
  <message>Implement S3 storage</message>
  <tree>6c3d5f2958ed5096d4e6af3e591f8434a5e8b827</tree>
  <committer>
    <name>Dan Newman</name>
    <email>dpnewman@gmail.com</email>
  </committer>
</commit>
