Re: [Radiant] Radiant Mailer Extension with TLS and gmail

2010-04-15 Thread Gabe Koss
hmm, still having no success. Its very confusing because I had it 
working both from heroku and localhost without tls (ie without gmail) 
but I need gmail for the client. Anyway in my logs it doesn't say mail 
sent at all and its clearly not interfacing with gmail on any level. It 
also isn't correctly redirecting.

Any more ideas?
Gabe

banane wrote:
 So you have sent mail successfully from heroku before? Yeah if it's a
 valid smtp send address, use it. For mine, I was on the domain that
 I'm sending from so I knew it was valid. If you've ever received an
 email from your old app, check the domain on the from address, and
 that's probably the one. Heroku may have some documentation on its
 smtp settings. So yeah, gmail requires a valid from sending address.

 On Wed, Apr 14, 2010 at 12:06 PM, Gabe Koss gabe.k...@gmail.com wrote:
   
 Ha I was psyched whn I found your post. Re: domain I do have a heroku sub:
 my-app.heroku.com. shouldnt that work as well?

 On Apr 14, 2010 1:23 PM, banane ban...@gmail.com wrote:

 You haven't set up a domain yet? The email has to come from somewhere.

 Thanks for reading my blog post! That was neat to see it in your email ;)

 Anna / banane


 On Wed, Apr 14, 2010 at 8:52 AM, Gabe Koss gabe.k...@gmail.com wrote:
 
 Hi everyone,

 I have t...
 ___
 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 Mailer Extension with TLS and gmail

2010-04-15 Thread Gabe Koss

Sorry to send another email before getting a response. Here is something 
I noticed:

When I am on my contact form at /about/contact and I click Send on my 
form it redirects me to /pages/38/mail#mailer instead of  
/about/contact/thanks (which is what i defined in the YAML mailer part)

Somehow the mailer part of my page isn't working is the only reason I 
can think. My logs don't show any errors. I am really starting to 
scratch my head..

Gabe

banane wrote:
 So you have sent mail successfully from heroku before? Yeah if it's a
 valid smtp send address, use it. For mine, I was on the domain that
 I'm sending from so I knew it was valid. If you've ever received an
 email from your old app, check the domain on the from address, and
 that's probably the one. Heroku may have some documentation on its
 smtp settings. So yeah, gmail requires a valid from sending address.

 On Wed, Apr 14, 2010 at 12:06 PM, Gabe Koss gabe.k...@gmail.com wrote:
   
 Ha I was psyched whn I found your post. Re: domain I do have a heroku sub:
 my-app.heroku.com. shouldnt that work as well?

 On Apr 14, 2010 1:23 PM, banane ban...@gmail.com wrote:

 You haven't set up a domain yet? The email has to come from somewhere.

 Thanks for reading my blog post! That was neat to see it in your email ;)

 Anna / banane


 On Wed, Apr 14, 2010 at 8:52 AM, Gabe Koss gabe.k...@gmail.com wrote:
 
 Hi everyone,

 I have t...
 ___
 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 Mailer Extension with TLS and gmail

2010-04-15 Thread Gabe Koss
Thanks for the help I tried this addition without any success. I am 
using heroku to host. Now when I view the contact page on localhost it 
looks fine but still doesn't work and if I push to heroku and load the 
same page it says *undefined tag `mailer'

Gabe
*
Anton Aylward wrote:
 Gabe Koss said the following on 04/15/2010 09:50 AM:
   
 hmm, still having no success. Its very confusing because I had it 
 working both from heroku and localhost without tls (ie without gmail) 
 but I need gmail for the client. Anyway in my logs it doesn't say mail 
 sent at all and its clearly not interfacing with gmail on any level. It 
 also isn't correctly redirecting.
 

 As I posted some weeks ago, the 'traditional' set up is too awkward,
 difficult to follow and as you are showing, very fragile.

 If the host supporting your web site has mail capability at all, try
 this instead of the awkward set-up you have been using and playing with.
 It avoids all that TLS stuff.

 In config/environment.rb put:

   ActionMailer::Base.delivery_method = :sendmail

 Since you are inside the host, sendmail shouln't have to worry about
 more than half of the set-up.  Yes, you'll still need your domain, you
 might still need password, but you're making the local mail sub-system
 do the work that you ere previously having to be very specific about.

 I battled with the mailer extension for a week and was very frustrated,
 but the moment I put that line in and restarted everything worked great!



   

___
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 Mailer Extension with TLS and gmail

2010-04-15 Thread Gabe Koss
Perhaps it is because I am using Ubuntu and not a mac? I don't have 
sendmail in /usr/sbin/ or /usr/lib/ and I don't think that it would work 
from heroku...

Gabe

Anton Aylward wrote:
 Gabe Koss said the following on 04/15/2010 11:07 AM:
   
 Thanks for all the help and patience!

 I am almost there. Now it seems to be sending the emails except they 
 aren't going anywhere. I am succesfully connnecting to the gmail smtp 
 but get a message stating: 504 5.7.4 Unrecognized Authentication Type. 
 

 That, VERY SPECIFICALLY is why I use the :sendmail option !

 I floundered with the authorization problem for nearly a week, inclduing
 setting up new mail accounts at my hosting service!

   
 My auth type is set to :plain  in environmen.rb. At the end of the 
 action it claims to have sent my mail but I am still not receiving the 
 sent mail nor am I being redirected...

 The text of my mailer part reads:

 subject: Sent from your mailer form
 from_field: email
 redirect_to: /about/contact/thanks
 recipients:
   - gabe.k...@gmail.com
   - t...@gabekoss.com
 

 That's nice but its not your problem.
 Your problem is injecting your message into the host mail system.
 That you are getting a 504 means you are using :smtp

 So, why is :sendmail a problem for you?

 Are you really addressing your local machine with this?
 If the applciaiton and config/environment.rb are on MACHINE-A and the
 reference you have in the mailer setup in
 ActionMailer::Base.smtp_settings is MACHINE-B then this could cause
 the problem.

 You might *THINK* you are addressing the same machine but does the
 machines resolver think so?

 That is why using :sendmail is so much easier.

 Check that sendmail is at /usr/sbin/sendmail and try sending by cat'ing
 a file with appropriate headers though it.

 ActionMailer::Base.delivery_method = :sendmail
 ActionMailer::Base.perform_deliveries = true


 If its not at /usr/sbin/sendmail you need to override the base settings,
 which are

 ActionMailer::Base.sendmail_settings = {
   :location   = '/usr/sbin/sendmail',
   :arguments  = '-i -t'
 }

 Try the command
   which sendmail
 to find it.
 It may also be somewhere like /usr/lib/sendmail:-)



   

___
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 Mailer Extension with TLS and gmail

2010-04-15 Thread Gabe Koss
I finally got it working. I just wanted to attach my solution to this 
thread in case anyone else encounters the same problems.

I ended up realizing that the problem had to do with the domain coming 
out of the heroku grid. I found that heroku has an addon called 
sendgrid which interacts nicely with ActionMailer. Following these 
instructions (http://docs.heroku.com/sendgrid) plus a little bit of 
settings wrangling and a server restart I got it working!

Thanks Anton and Banane for all your help. The awesome community of 
people working with radiant is one of the main reasons I have chosen to 
use this CMS. Sorry about all the dead ends in this thread.

Gabe


Anton Aylward wrote:
 Gabe Koss said the following on 04/15/2010 11:07 AM:
   
 Thanks for all the help and patience!

 I am almost there. Now it seems to be sending the emails except they 
 aren't going anywhere. I am succesfully connnecting to the gmail smtp 
 but get a message stating: 504 5.7.4 Unrecognized Authentication Type. 
 

 That, VERY SPECIFICALLY is why I use the :sendmail option !

 I floundered with the authorization problem for nearly a week, inclduing
 setting up new mail accounts at my hosting service!

   
 My auth type is set to :plain  in environmen.rb. At the end of the 
 action it claims to have sent my mail but I am still not receiving the 
 sent mail nor am I being redirected...

 The text of my mailer part reads:

 subject: Sent from your mailer form
 from_field: email
 redirect_to: /about/contact/thanks
 recipients:
   - gabe.k...@gmail.com
   - t...@gabekoss.com
 

 That's nice but its not your problem.
 Your problem is injecting your message into the host mail system.
 That you are getting a 504 means you are using :smtp

 So, why is :sendmail a problem for you?

 Are you really addressing your local machine with this?
 If the applciaiton and config/environment.rb are on MACHINE-A and the
 reference you have in the mailer setup in
 ActionMailer::Base.smtp_settings is MACHINE-B then this could cause
 the problem.

 You might *THINK* you are addressing the same machine but does the
 machines resolver think so?

 That is why using :sendmail is so much easier.

 Check that sendmail is at /usr/sbin/sendmail and try sending by cat'ing
 a file with appropriate headers though it.

 ActionMailer::Base.delivery_method = :sendmail
 ActionMailer::Base.perform_deliveries = true


 If its not at /usr/sbin/sendmail you need to override the base settings,
 which are

 ActionMailer::Base.sendmail_settings = {
   :location   = '/usr/sbin/sendmail',
   :arguments  = '-i -t'
 }

 Try the command
   which sendmail
 to find it.
 It may also be somewhere like /usr/lib/sendmail:-)



   

___
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 Mailer Extension with TLS and gmail

2010-04-14 Thread Gabe Koss
Hi everyone,

I have the radiant mailer extension installed and I had it working just 
fine. I want to start using a gmail account to send the form info. In 
order to support TLS i followed bananes guide found here:

http://www.banane.com/2009/10/27/radiant-mailer-extension-installation-basics/

Unfortunately my site no longer sends mail. The logs previously said 
email sent to recipi...@site.com and now there is no message. There is 
also no error message. The server starts up fine and

One thought was that I had the mailer extension already installed and 
just added the plugin on top of that. would I need to reinsall the 
extension again over it?

My environments.rb file contains:

 config.frameworks -= [ ]
 ...
 ...
 ActionMailer::Base.delivery_method = :smtp
 ActionMailer::Base.raise_delivery_errors = true
 ...
 ...
#Action mailer config
  ActionMailer::Base.smtp_settings = {
  :tls = true,
  :address = smtp.gmail.com,
  :port = 587,
  :domain = domain.com, # should this be domain.heroku.com, if 
I haven't set up a domain yet? does it matter?
  :authentiation = :plain,
  :user_name = em...@gmail.com,
  :password = topsecretpassword
 }

When I do a form submit my log looks like:

Processing MailController#create (for 192.168.1.105 at 2010-04-14
08:49:20) [POST]
  Parameters: {page_id=38, action=create,
mailer={name=test, message=test, email=test},
controller=mail}
New RightAws::S3Interface using single-threaded mode
...
...
...
Completed in 1332ms (View: 1, DB: 27) | 200 OK
[http://192.168.1.112/pages/38/mail]


Any insights would be much 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


Re: [Radiant] Radiant Mailer Extension with TLS and gmail

2010-04-14 Thread Gabe Koss
Ha I was psyched whn I found your post. Re: domain I do have a heroku sub:
my-app.heroku.com. shouldnt that work as well?

On Apr 14, 2010 1:23 PM, banane ban...@gmail.com wrote:

You haven't set up a domain yet? The email has to come from somewhere.

Thanks for reading my blog post! That was neat to see it in your email ;)

Anna / banane


On Wed, Apr 14, 2010 at 8:52 AM, Gabe Koss gabe.k...@gmail.com wrote:
 Hi everyone,

 I have t...
 ___
 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] application sync

2010-04-13 Thread Gabe Koss
I had a questions about syncing my heroku app with my local filesystem. 
So far I have been doing all my development locally and pushing to 
heroku via git and heroku db:push. Now I have other users adding content.

My question is will heroku db:pull fully match the remote app on my 
local filesystem or is there another command I need as well. I added an 
asset via paperclipped (stored on s3) on the heroku site and when I did 
db:pull that assets information was not listed in my assets tab.

Any thoughts?

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


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 
 #Object:0xb75d994c
  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 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 
 #Object:0xb75d994c
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
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 
 #Object:0xb75d994c
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


[Radiant] Page Caching on Heroku

2010-04-12 Thread Gabe Koss
Hi,

Can anyone point me to the best way to deal with page caching for 
radiant on Heroku. Is there anyway that multiple users can make changes 
to page content without requiring a 24 hour wait for the Heroku cache to 
clear?

Thank you,
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


Re: [Radiant] Newbie Issues with Radiant on Snow Leopard

2010-03-26 Thread Gabe Koss
I have fixed the problem without uninstalling rack. In
/lib/action_controller.rb there is a line which specifies the raelck gem
version. I was able to change this line to the correct rack version. which
fixed my issue.

That was actually on Ubuntu 9.04 but maybe it'll work on osx. ..

Gabe

On Mar 26, 2010 2:33 PM, john muhl johnm...@gmail.com wrote:

gem uninstall rack
gem install rack -v 1.0.1


On Fri, Mar 26, 2010 at 8:17 AM, Ilan Volow list...@clarux.com wrote:

 I'm trying out Radiant on my machine, OS X 10.6 Snow Leopard, using the
 version of Ruby that cam...
___
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] Beginner Radiant Questions

2010-03-16 Thread Gabe Koss
Hi,
I am just starting to use Radiant. So far I have only been setting up 
Radiant sites on  my own machines for testing and development but I am 
at a stage where I am ready to begin hosting on public servers and can 
not decide what the best approach to take is.
 
I need to host multiple domains. I can do this in  rails containers or 
on a vps type of deal but that can get expensive. I would like to be 
able to host multiple domains from one webserver. I need site owners to 
be able to log in to their own site for editing purposes but do not want 
them to have shared access. That sort of rules out the possibility of 
making each domain a child page for the hosting domain and then 
redirecting to those subdirectories.

Will the multi_site extension allow me to have different users with 
access only to specific domains? I have not yet had success getting this 
extension installed correctly (haven't given up yet!) but there is such 
limited documentation that I am not even sure if it works the way that I 
hope it does.

Basically I am hoping people can point me to good resources or have 
suggestions for ways to host my own radiant sites. For my other sites I 
currently host with mediatemple and would like to keep with them if I 
can host multiple radiant sites from one server...

Sorry for the beginner questions.

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