Re: [Radiant] Radiant Paperclip Extension and S3

2010-04-12 Thread Gabe Koss
Correction: when i try and upload an asset via heroku i get an 
application error


  Application error

Change this error message for exceptions thrown outside of an action 
(like in Dispatcher setups or broken Ruby code) in public/500.html


Gabe

Keith Bingman wrote:
> Try running RAILS_ENV=production script/console and let me know what happens.
>
> Keith
>
> On Apr 12, 2010, at 4:22 PM, Gabe Koss wrote:
>
>   
>> I have tried installing the Settings extension but it won't process any 
>> of the Rake tasks and breaks the app...
>>
>> Gabe
>>
>> Keith Bingman wrote:
>> 
>>> Hi Gabe, 
>>>
>>> I have a bunch of sites running on Heroku, with no problems.
>>>
>>> I think your problem is that you are missing the quotes for the radiant 
>>> config values. It should be: Radiant::Config['assets.storage'] = "s3" 
>>> (Quotes around the assets.storage). 
>>>
>>> I think though the easiest way to do it would be to install the Settings 
>>> extension, then just add the correct fields in the admin UI. This is the 
>>> way I do it. Let me know if that helps. 
>>>
>>> Keith
>>>
>>> Keith Bingman
>>>
>>> ke...@keithbingman.com
>>> http://keithbingman.com
>>>
>>> August-Ruf-Str. 38
>>> D-78224 Singen
>>>
>>> Tel.: +49-7731-798 383 0
>>> Mobil: +49 171 932 33 75
>>>
>>> On Apr 12, 2010, at 4:13 PM, Gabe Koss wrote:
>>>
>>>
>>>   
 Hi,

 I am using Radiant on Heroku. I have installed the paperclipped 
 extension and I'm trying to tether it to my s3 buckets to store the 
 assets. I have read any number of tutorials so far with no success.

 The instructions here seem like they should work: 
 http://github.com/kbingman/paperclipped/blob/master/README.md

 When do either script/console OR script/console RAILS_ENV=production I 
 get the following message:

 g...@ubuntu:~/elmoreroots/radiant$ script/console RAILS_ENV=production
 Loading RAILS_ENV=production environment (Rails 2.3.4)
 /usr/lib/ruby/gems/1.8/gems/radiant-0.8.1/vendor/rails/railties/lib/initializer.rb:386:in
  
 `read':Errno::ENOENT: No such file or directory - 
 /home/gabe/elmoreroots/radiant/config/environments/RAILS_ENV=production.rb

 It still takes me to the console but if try and run the config command

 |>> Radiant::Config[assets.storage] = "s3"
 NameError: undefined local variable or method `assets' for 
 #
from (irb):1

 I have also tried following the instructions from:

 http://blog.heroku.com/archives/2009/4/7/config-vars/

 but got stuck trying to configure paperclipped. Where would i place those 
 configuration settings? I am guessing that this is for more traditional 
 rails apps and won't work with paperclipped?

 Any help would be appreciated!
 Thanks,
 Gabe


 |

 ___
 Radiant mailing list
 Post: Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
 Radiant: http://radiantcms.org
 Extensions: http://ext.radiantcms.org

 
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> ___
>>> Radiant mailing list
>>> Post: Radiant@radiantcms.org
>>> Search: http://radiantcms.org/mailing-list/search/
>>> List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
>>> Radiant: http://radiantcms.org
>>> Extensions: http://ext.radiantcms.org
>>>
>>>
>>>   
>> ___
>> Radiant mailing list
>> Post: Radiant@radiantcms.org
>> Search: http://radiantcms.org/mailing-list/search/
>> List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
>> Radiant: http://radiantcms.org
>> Extensions: http://ext.radiantcms.org
>> 
>
> ___
> Radiant mailing list
> Post: Radiant@radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
> Radiant: http://radiantcms.org
> Extensions: http://ext.radiantcms.org
>
>   

___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


Re: [Radiant] Radiant Paperclip Extension and S3

2010-04-12 Thread Gabe Koss
I actually just got it working with script/console production. The extra 
"" marks seemed to help too. :-)

Now, however I am encountering a different problem. It doesn't seem like 
it is actually tethered to s3. If i upload an asset locally it works 
like it did before and adds it to public/assets/:id and if i try and 
upload it to heroku it just times out. think I am missing something. in 
the console I ran:

Radiant::Config['assets.storage'] = "s3"
Radiant::Config['assets.s3.bucket'] = "MY_BUCKETNAME"
Radiant::Config['assets.s3.key'] = "MY_ACCESS_KEY"
Radiant::Config['assets.s3.secret'] = "MY_SECRET"
Radiant::Config['assets.path'] = ":class/:id/:basename_:style.:extension"

Thanks for your help, you are making my day way calmer, haha

Gabe



Keith Bingman wrote:
> Try running RAILS_ENV=production script/console and let me know what happens.
>
> Keith
>
> On Apr 12, 2010, at 4:22 PM, Gabe Koss wrote:
>
>   
>> I have tried installing the Settings extension but it won't process any 
>> of the Rake tasks and breaks the app...
>>
>> Gabe
>>
>> Keith Bingman wrote:
>> 
>>> Hi Gabe, 
>>>
>>> I have a bunch of sites running on Heroku, with no problems.
>>>
>>> I think your problem is that you are missing the quotes for the radiant 
>>> config values. It should be: Radiant::Config['assets.storage'] = "s3" 
>>> (Quotes around the assets.storage). 
>>>
>>> I think though the easiest way to do it would be to install the Settings 
>>> extension, then just add the correct fields in the admin UI. This is the 
>>> way I do it. Let me know if that helps. 
>>>
>>> Keith
>>>
>>> Keith Bingman
>>>
>>> ke...@keithbingman.com
>>> http://keithbingman.com
>>>
>>> August-Ruf-Str. 38
>>> D-78224 Singen
>>>
>>> Tel.: +49-7731-798 383 0
>>> Mobil: +49 171 932 33 75
>>>
>>> On Apr 12, 2010, at 4:13 PM, Gabe Koss wrote:
>>>
>>>
>>>   
 Hi,

 I am using Radiant on Heroku. I have installed the paperclipped 
 extension and I'm trying to tether it to my s3 buckets to store the 
 assets. I have read any number of tutorials so far with no success.

 The instructions here seem like they should work: 
 http://github.com/kbingman/paperclipped/blob/master/README.md

 When do either script/console OR script/console RAILS_ENV=production I 
 get the following message:

 g...@ubuntu:~/elmoreroots/radiant$ script/console RAILS_ENV=production
 Loading RAILS_ENV=production environment (Rails 2.3.4)
 /usr/lib/ruby/gems/1.8/gems/radiant-0.8.1/vendor/rails/railties/lib/initializer.rb:386:in
  
 `read':Errno::ENOENT: No such file or directory - 
 /home/gabe/elmoreroots/radiant/config/environments/RAILS_ENV=production.rb

 It still takes me to the console but if try and run the config command

 |>> Radiant::Config[assets.storage] = "s3"
 NameError: undefined local variable or method `assets' for 
 #
from (irb):1

 I have also tried following the instructions from:

 http://blog.heroku.com/archives/2009/4/7/config-vars/

 but got stuck trying to configure paperclipped. Where would i place those 
 configuration settings? I am guessing that this is for more traditional 
 rails apps and won't work with paperclipped?

 Any help would be appreciated!
 Thanks,
 Gabe


 |

 ___
 Radiant mailing list
 Post: Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
 Radiant: http://radiantcms.org
 Extensions: http://ext.radiantcms.org

 
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> ___
>>> Radiant mailing list
>>> Post: Radiant@radiantcms.org
>>> Search: http://radiantcms.org/mailing-list/search/
>>> List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
>>> Radiant: http://radiantcms.org
>>> Extensions: http://ext.radiantcms.org
>>>
>>>
>>>   
>> ___
>> Radiant mailing list
>> Post: Radiant@radiantcms.org
>> Search: http://radiantcms.org/mailing-list/search/
>> List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
>> Radiant: http://radiantcms.org
>> Extensions: http://ext.radiantcms.org
>> 
>
> ___
> Radiant mailing list
> Post: Radiant@radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
> Radiant: http://radiantcms.org
> Extensions: http://ext.radiantcms.org
>
>   

___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


Re: [Radiant] Radiant Paperclip Extension and S3

2010-04-12 Thread Keith Bingman
Try running RAILS_ENV=production script/console and let me know what happens.

Keith

On Apr 12, 2010, at 4:22 PM, Gabe Koss wrote:

> I have tried installing the Settings extension but it won't process any 
> of the Rake tasks and breaks the app...
> 
> Gabe
> 
> Keith Bingman wrote:
>> Hi Gabe, 
>> 
>> I have a bunch of sites running on Heroku, with no problems.
>> 
>> I think your problem is that you are missing the quotes for the radiant 
>> config values. It should be: Radiant::Config['assets.storage'] = "s3" 
>> (Quotes around the assets.storage). 
>> 
>> I think though the easiest way to do it would be to install the Settings 
>> extension, then just add the correct fields in the admin UI. This is the way 
>> I do it. Let me know if that helps. 
>> 
>> Keith
>> 
>> Keith Bingman
>> 
>> ke...@keithbingman.com
>> http://keithbingman.com
>> 
>> August-Ruf-Str. 38
>> D-78224 Singen
>> 
>> Tel.: +49-7731-798 383 0
>> Mobil: +49 171 932 33 75
>> 
>> On Apr 12, 2010, at 4:13 PM, Gabe Koss wrote:
>> 
>> 
>>> Hi,
>>> 
>>> I am using Radiant on Heroku. I have installed the paperclipped 
>>> extension and I'm trying to tether it to my s3 buckets to store the 
>>> assets. I have read any number of tutorials so far with no success.
>>> 
>>> The instructions here seem like they should work: 
>>> http://github.com/kbingman/paperclipped/blob/master/README.md
>>> 
>>> When do either script/console OR script/console RAILS_ENV=production I 
>>> get the following message:
>>> 
>>> g...@ubuntu:~/elmoreroots/radiant$ script/console RAILS_ENV=production
>>> Loading RAILS_ENV=production environment (Rails 2.3.4)
>>> /usr/lib/ruby/gems/1.8/gems/radiant-0.8.1/vendor/rails/railties/lib/initializer.rb:386:in
>>>  
>>> `read':Errno::ENOENT: No such file or directory - 
>>> /home/gabe/elmoreroots/radiant/config/environments/RAILS_ENV=production.rb
>>> 
>>> It still takes me to the console but if try and run the config command
>>> 
>>> |>> Radiant::Config[assets.storage] = "s3"
>>> NameError: undefined local variable or method `assets' for 
>>> #
>>> from (irb):1
>>> 
>>> I have also tried following the instructions from:
>>> 
>>> http://blog.heroku.com/archives/2009/4/7/config-vars/
>>> 
>>> but got stuck trying to configure paperclipped. Where would i place those 
>>> configuration settings? I am guessing that this is for more traditional 
>>> rails apps and won't work with paperclipped?
>>> 
>>> Any help would be appreciated!
>>> Thanks,
>>> Gabe
>>> 
>>> 
>>> |
>>> 
>>> ___
>>> Radiant mailing list
>>> Post: Radiant@radiantcms.org
>>> Search: http://radiantcms.org/mailing-list/search/
>>> List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
>>> Radiant: http://radiantcms.org
>>> Extensions: http://ext.radiantcms.org
>>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ___
>> Radiant mailing list
>> Post: Radiant@radiantcms.org
>> Search: http://radiantcms.org/mailing-list/search/
>> List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
>> Radiant: http://radiantcms.org
>> Extensions: http://ext.radiantcms.org
>> 
>> 
> 
> ___
> Radiant mailing list
> Post: Radiant@radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
> Radiant: http://radiantcms.org
> Extensions: http://ext.radiantcms.org

___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


Re: [Radiant] Radiant Paperclip Extension and S3

2010-04-12 Thread Gabe Koss
I have tried installing the Settings extension but it won't process any 
of the Rake tasks and breaks the app...

Gabe

Keith Bingman wrote:
> Hi Gabe, 
>
> I have a bunch of sites running on Heroku, with no problems.
>
> I think your problem is that you are missing the quotes for the radiant 
> config values. It should be: Radiant::Config['assets.storage'] = "s3" (Quotes 
> around the assets.storage). 
>
> I think though the easiest way to do it would be to install the Settings 
> extension, then just add the correct fields in the admin UI. This is the way 
> I do it. Let me know if that helps. 
>
> Keith
>
> Keith Bingman
>
> ke...@keithbingman.com
> http://keithbingman.com
>
> August-Ruf-Str. 38
> D-78224 Singen
>
> Tel.: +49-7731-798 383 0
> Mobil: +49 171 932 33 75
>
> On Apr 12, 2010, at 4:13 PM, Gabe Koss wrote:
>
>   
>> Hi,
>>
>> I am using Radiant on Heroku. I have installed the paperclipped 
>> extension and I'm trying to tether it to my s3 buckets to store the 
>> assets. I have read any number of tutorials so far with no success.
>>
>> The instructions here seem like they should work: 
>> http://github.com/kbingman/paperclipped/blob/master/README.md
>>
>> When do either script/console OR script/console RAILS_ENV=production I 
>> get the following message:
>>
>> g...@ubuntu:~/elmoreroots/radiant$ script/console RAILS_ENV=production
>> Loading RAILS_ENV=production environment (Rails 2.3.4)
>> /usr/lib/ruby/gems/1.8/gems/radiant-0.8.1/vendor/rails/railties/lib/initializer.rb:386:in
>>  
>> `read':Errno::ENOENT: No such file or directory - 
>> /home/gabe/elmoreroots/radiant/config/environments/RAILS_ENV=production.rb
>>
>> It still takes me to the console but if try and run the config command
>>
>> |>> Radiant::Config[assets.storage] = "s3"
>> NameError: undefined local variable or method `assets' for 
>> #
>>  from (irb):1
>>
>> I have also tried following the instructions from:
>>
>> http://blog.heroku.com/archives/2009/4/7/config-vars/
>>
>> but got stuck trying to configure paperclipped. Where would i place those 
>> configuration settings? I am guessing that this is for more traditional 
>> rails apps and won't work with paperclipped?
>>
>> Any help would be appreciated!
>> Thanks,
>> Gabe
>>
>>
>> |
>>
>> ___
>> Radiant mailing list
>> Post: Radiant@radiantcms.org
>> Search: http://radiantcms.org/mailing-list/search/
>> List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
>> Radiant: http://radiantcms.org
>> Extensions: http://ext.radiantcms.org
>> 
>
>
>
>
>
>
>
>
>
>
>
> ___
> Radiant mailing list
> Post: Radiant@radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
> Radiant: http://radiantcms.org
> Extensions: http://ext.radiantcms.org
>
>   

___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


Re: [Radiant] Radiant Paperclip Extension and S3

2010-04-12 Thread Keith Bingman
Hi Gabe, 

I have a bunch of sites running on Heroku, with no problems.

I think your problem is that you are missing the quotes for the radiant config 
values. It should be: Radiant::Config['assets.storage'] = "s3" (Quotes around 
the assets.storage). 

I think though the easiest way to do it would be to install the Settings 
extension, then just add the correct fields in the admin UI. This is the way I 
do it. Let me know if that helps. 

Keith

Keith Bingman

ke...@keithbingman.com
http://keithbingman.com

August-Ruf-Str. 38
D-78224 Singen

Tel.: +49-7731-798 383 0
Mobil: +49 171 932 33 75

On Apr 12, 2010, at 4:13 PM, Gabe Koss wrote:

> Hi,
> 
> I am using Radiant on Heroku. I have installed the paperclipped 
> extension and I'm trying to tether it to my s3 buckets to store the 
> assets. I have read any number of tutorials so far with no success.
> 
> The instructions here seem like they should work: 
> http://github.com/kbingman/paperclipped/blob/master/README.md
> 
> When do either script/console OR script/console RAILS_ENV=production I 
> get the following message:
> 
> g...@ubuntu:~/elmoreroots/radiant$ script/console RAILS_ENV=production
> Loading RAILS_ENV=production environment (Rails 2.3.4)
> /usr/lib/ruby/gems/1.8/gems/radiant-0.8.1/vendor/rails/railties/lib/initializer.rb:386:in
>  
> `read':Errno::ENOENT: No such file or directory - 
> /home/gabe/elmoreroots/radiant/config/environments/RAILS_ENV=production.rb
> 
> It still takes me to the console but if try and run the config command
> 
> |>> Radiant::Config[assets.storage] = "s3"
> NameError: undefined local variable or method `assets' for 
> #
>   from (irb):1
> 
> I have also tried following the instructions from:
> 
> http://blog.heroku.com/archives/2009/4/7/config-vars/
> 
> but got stuck trying to configure paperclipped. Where would i place those 
> configuration settings? I am guessing that this is for more traditional rails 
> apps and won't work with paperclipped?
> 
> Any help would be appreciated!
> Thanks,
> Gabe
> 
> 
> |
> 
> ___
> Radiant mailing list
> Post: Radiant@radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
> Radiant: http://radiantcms.org
> Extensions: http://ext.radiantcms.org











___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


[Radiant] Radiant Paperclip Extension and S3

2010-04-12 Thread Gabe Koss
Hi,

I am using Radiant on Heroku. I have installed the paperclipped 
extension and I'm trying to tether it to my s3 buckets to store the 
assets. I have read any number of tutorials so far with no success.

The instructions here seem like they should work: 
http://github.com/kbingman/paperclipped/blob/master/README.md

When do either script/console OR script/console RAILS_ENV=production I 
get the following message:

g...@ubuntu:~/elmoreroots/radiant$ script/console RAILS_ENV=production
Loading RAILS_ENV=production environment (Rails 2.3.4)
/usr/lib/ruby/gems/1.8/gems/radiant-0.8.1/vendor/rails/railties/lib/initializer.rb:386:in
 
`read':Errno::ENOENT: No such file or directory - 
/home/gabe/elmoreroots/radiant/config/environments/RAILS_ENV=production.rb

It still takes me to the console but if try and run the config command

|>> Radiant::Config[assets.storage] = "s3"
NameError: undefined local variable or method `assets' for #
from (irb):1

I have also tried following the instructions from:

http://blog.heroku.com/archives/2009/4/7/config-vars/

but got stuck trying to configure paperclipped. Where would i place those 
configuration settings? I am guessing that this is for more traditional rails 
apps and won't work with paperclipped?

Any help would be appreciated!
Thanks,
Gabe


|

___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org