Re: [Radiant] Radiant Site Excessive Memory Usage

2009-10-26 Thread Sean Cribbs
On a 256MB VPS, you should run no more than 2 app servers, 60-100MB of 
RAM is typical per app server/worker.  If you're using passenger, which 
it seems you are, put these into your Apache config:

PassengerMaxPoolSize 2
PassengerMaxInstancesPerApp 2

Sean

Allan Miller wrote:
> Hello,
>
> I'm running a small radiant site (about 20 pages) using only a few  
> extensions (blog, help, and mail_to).  The site uses what seems to be  
> an excessive amount of memory:
>
>
> After apache restart, no radiant site page requests yet:
>
>   $free -m
>total   used   free  
> sharedbuffers cached
> Mem: 256 61195   
> 0  0 13
> -/+ buffers/cache:47209
> Swap:511 39472
>
>
>
> After first page request just after apache restart:
>
> $ free -m
>total   used   free  
> sharedbuffers cached
> Mem:  256252  4   
> 0  0 14
> -/+ buffers/cache:   237 18
> Swap: 511 48463
>
> I'm running on passenger 2.2.5 using apache2, and not using  
> ImageMagik/RMagik gems (not installed).
>
> Any idea what might be causing this, and how I might go about  
> reducing memory usage?
>
> Thanks!
>
> ___
> Radiant mailing list
> Post:   Radiant@radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
>   

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


Re: [Radiant] Another question about database_mailer - capturing a file?

2009-10-26 Thread Cristi Duma
Well, although we use mailer extension on every site, database-mailer was
used only a few times and we never needed Recaptcha. But, I think it is a
good idea. Maybe someone will do it, when they need it.

At the moment, for multiple attachments you can just add more "file" fields,
Don't know if there is a flash uploader.

Cristi


On Mon, Oct 26, 2009 at 7:36 PM, Nate Turnage  wrote:

> On Mon, Oct 26, 2009 at 12:10 PM, Cristi Duma 
> wrote:
>
> > 1. Any attachments that the e-mail might have will be automatically saved
> > on
> > the file system. They can be downloaded from the details page of every
> > record.
> >
>
> OK, that clears that up.
>
>
> > 2. You need  but the official version
> of
> > mailer doesn't support mail attachments. Jomz had a version, which we
> took
> > and merged into our version of
> > mailer
>
>
> Alright. I have your version installed. I have to say, though, that it
> would
> be really nice if the 20+ forks of mailer could all be wrangled into the
> main version of mailer. I would love to have a mailer that worked with file
> attachments [multiple attachments?], captured the info in database_mailer
> *and* made use of Recaptcha. It is frustrating trying to decipher the
> network graph to figure out which extension(s) to use sometimes.
>
> Thanks for your help, Cristi.
>
>
> ~Nate
> ___
> Radiant mailing list
> Post:   Radiant@radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Troubles with mailer extension

2009-10-26 Thread john muhl
>>> i also see that you're trying to send to an @gmail.com address so i'm
>>> guessing that you're using the gmail smtp server; if that's the case
>>> and you're running ruby 1.8.6 you'll need to install the
>>> action_mailer_tls rails plugin.
>
> I've installed the action_mailer_tls gem, should I include it this way
> before the Action Mailer SMTP configuration
>
> require 'smtp_tls'
>
> or it is not needed?

from what i understand it's not needed. see the first comment here:
http://apidock.com/rails/ActionMailer/Base
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Troubles with mailer extension

2009-10-26 Thread María Paula Mariani
2009/10/26 María Paula Mariani 

>
>> i also see that you're trying to send to an @gmail.com address so i'm
>> guessing that you're using the gmail smtp server; if that's the case
>> and you're running ruby 1.8.6 you'll need to install the
>> action_mailer_tls rails plugin.
>>
>> Hi!

I've installed the action_mailer_tls gem, should I include it this way
before the Action Mailer SMTP configuration

require 'smtp_tls'

or it is not needed?


Thanks very much,
-- 
Paula
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

[Radiant] Multilingual pages extension

2009-10-26 Thread María Paula Mariani
Hello!

I'm having some troubles with the Multilingual Pages extension this time.
I've placed a language selector from the available tags that look like this:

  

  

  
  

  
  
  
 
  

The problem is that the available languages that are being displayed, at
first sight are coming from all the Slugs I wrote sometime. Spanish is being
displayed twice.
Any clues? suggestions?

My Home page is not multilingual. It's slug is /
English redirects to /lang-en and Spanish to /lang-es


Thanks very much!

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


Re: [Radiant] Another question about database_mailer - capturing a file?

2009-10-26 Thread Nate Turnage
On Mon, Oct 26, 2009 at 12:10 PM, Cristi Duma  wrote:

> 1. Any attachments that the e-mail might have will be automatically saved
> on
> the file system. They can be downloaded from the details page of every
> record.
>

OK, that clears that up.


> 2. You need  but the official version of
> mailer doesn't support mail attachments. Jomz had a version, which we took
> and merged into our version of
> mailer


Alright. I have your version installed. I have to say, though, that it would
be really nice if the 20+ forks of mailer could all be wrangled into the
main version of mailer. I would love to have a mailer that worked with file
attachments [multiple attachments?], captured the info in database_mailer
*and* made use of Recaptcha. It is frustrating trying to decipher the
network graph to figure out which extension(s) to use sometimes.

Thanks for your help, Cristi.


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


Re: [Radiant] Another question about database_mailer - capturing a file?

2009-10-26 Thread Cristi Duma
1. Any attachments that the e-mail might have will be automatically saved on
the file system. They can be downloaded from the details page of every
record.

2. You need  but the official version of
mailer doesn't support mail attachments. Jomz had a version, which we took
and merged into our version of
mailer



On Mon, Oct 26, 2009 at 7:03 PM, Nate Turnage  wrote:

> How do I set up a column in the environment for database_mailer to capture
> a
> file submitted by a user?
>
> And more of a mailer question:
> How can I include that file in the email set out with mailer?
>
>
>
> ~Nate
> ___
> Radiant mailing list
> Post:   Radiant@radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Another question about database_mailer - capturing a file?

2009-10-26 Thread Nate Turnage
How do I set up a column in the environment for database_mailer to capture a
file submitted by a user?

And more of a mailer question:
How can I include that file in the email set out with mailer?



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


Re: [Radiant] Question about checking out branch of database_mailer

2009-10-26 Thread Nate Turnage
On Mon, Oct 26, 2009 at 11:36 AM, Cristian Duma wrote:

> let me be clear(er) :)
>
> git checkout -b local origin/0.8
>
> for Radiant 0.8.1
>


Thanks for that.


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


Re: [Radiant] Question about checking out branch of database_mailer

2009-10-26 Thread Cristian Duma
let me be clear(er) :)

git checkout -b local origin/0.8

for Radiant 0.8.1

On Mon, Oct 26, 2009 at 6:36 PM, Cristian Duma wrote:

> it should be git checkout -b  origin/
>
> I've added as a note on the readme.
>
>
> On Mon, Oct 26, 2009 at 6:30 PM, Nate Turnage  wrote:
>
>> Hey all. I gotta quick one.
>>
>> I have the database_mailer extension loaded as a submodule. I tried to
>> update it to origin/master then run the migration on it, but I am getting
>> errors. I ran git submodule init && git submodule update, then I saw that
>> there were branches for 0.7, 0.8, 0.9. I cannot remember how to check out
>> a
>> remote branch. Can somebody refresh my memory on how to do that?
>>
>> Running 0.8.1.
>>
>>
>> Thanks,
>>
>> Nate
>> ___
>> Radiant mailing list
>> Post:   Radiant@radiantcms.org
>> Search: http://radiantcms.org/mailing-list/search/
>> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>>
>
>
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Question about checking out branch of database_mailer

2009-10-26 Thread Cristian Duma
it should be git checkout -b  origin/

I've added as a note on the readme.

On Mon, Oct 26, 2009 at 6:30 PM, Nate Turnage  wrote:

> Hey all. I gotta quick one.
>
> I have the database_mailer extension loaded as a submodule. I tried to
> update it to origin/master then run the migration on it, but I am getting
> errors. I ran git submodule init && git submodule update, then I saw that
> there were branches for 0.7, 0.8, 0.9. I cannot remember how to check out a
> remote branch. Can somebody refresh my memory on how to do that?
>
> Running 0.8.1.
>
>
> Thanks,
>
> Nate
> ___
> Radiant mailing list
> Post:   Radiant@radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Question about checking out branch of database_mailer

2009-10-26 Thread Nate Turnage
Hey all. I gotta quick one.

I have the database_mailer extension loaded as a submodule. I tried to
update it to origin/master then run the migration on it, but I am getting
errors. I ran git submodule init && git submodule update, then I saw that
there were branches for 0.7, 0.8, 0.9. I cannot remember how to check out a
remote branch. Can somebody refresh my memory on how to do that?

Running 0.8.1.


Thanks,

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


Re: [Radiant] Troubles with mailer extension

2009-10-26 Thread María Paula Mariani
On Mon, Oct 26, 2009 at 1:04 PM, john muhl  wrote:

> On Mon, Oct 26, 2009 at 9:37 AM, Travis D. Warlick, Jr.
>  wrote:
> > You should be using the following tag syntax for the form fields:
> >
> >   
> >
> > See the Usage section here:
> http://github.com/radiant/radiant-mailer-extension
>
> not true. everything inside  is already in the
>  "namespace" so
>
> 
>  
>
> is exactly the same as
>
> 
>  
>
> (this is pretty much true of all radius tags)
>
> > On Oct 26, 2009, at 9:26 AM, María Paula Mariani wrote:
> > > I'm trying to build a contact form using the Mailer extension. I've
> > > followed
> > > step by step the documentation, but I can't find the way.
> > > When clicking at Submit form, it do not deliver the message and
> > > forward to
> > > this path /pages/84/mail#mailer
>
> that url suggest you haven't set
> `Radiant::Config['mailer.post_to_page?'] = true`. see
> http://wiki.github.com/radiant/radiant/mailer-extension
>
> i also see that you're trying to send to an @gmail.com address so i'm
> guessing that you're using the gmail smtp server; if that's the case
> and you're running ruby 1.8.6 you'll need to install the
> action_mailer_tls rails plugin.
>
> if none of that helps could you provide more details on your setup.
> action mailer config, smtp provider, ruby version, radiant version
> etc.
> ___
> Radiant mailing list
> Post:   Radiant@radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>

Hi! Thanks very much for your answers!

I've tried using this format  but I keep having
the same troubles.

I've added `Radiant::Config['mailer.post_to_page?'] = true` to the
environment.rb file, to the very last line, and made again the deploy. Now
the URL I see after submitting is /pages/71/mail#mailer, should I set a
thank_you page?

We are running ruby 1.8.6, I will install the plugin suggested.

By the way, a mailer section for multiple recipients should look this way?

Mailer

  subject: "Contact from website"
  from_field: email
  recipients:
-  paulamari...@gmail.com
-  anot...@gmail.com 
-  n...@name .com 


Thanks very much!

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

[Radiant] Radiant Site Excessive Memory Usage

2009-10-26 Thread Allan Miller
Hello,

I'm running a small radiant site (about 20 pages) using only a few  
extensions (blog, help, and mail_to).  The site uses what seems to be  
an excessive amount of memory:


After apache restart, no radiant site page requests yet:

  $free -m
   total   used   free  
sharedbuffers cached
Mem: 256 61195   
0  0 13
-/+ buffers/cache:47209
Swap:511 39472



After first page request just after apache restart:

$ free -m
   total   used   free  
sharedbuffers cached
Mem:  256252  4   
0  0 14
-/+ buffers/cache:   237 18
Swap: 511 48463

I'm running on passenger 2.2.5 using apache2, and not using  
ImageMagik/RMagik gems (not installed).

Any idea what might be causing this, and how I might go about  
reducing memory usage?

Thanks!

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


Re: [Radiant] Troubles with mailer extension

2009-10-26 Thread john muhl
On Mon, Oct 26, 2009 at 9:37 AM, Travis D. Warlick, Jr.
 wrote:
> You should be using the following tag syntax for the form fields:
>
>   
>
> See the Usage section here: http://github.com/radiant/radiant-mailer-extension

not true. everything inside  is already in the
 "namespace" so


  

is exactly the same as


  

(this is pretty much true of all radius tags)

> On Oct 26, 2009, at 9:26 AM, María Paula Mariani wrote:
> > I'm trying to build a contact form using the Mailer extension. I've
> > followed
> > step by step the documentation, but I can't find the way.
> > When clicking at Submit form, it do not deliver the message and
> > forward to
> > this path /pages/84/mail#mailer

that url suggest you haven't set
`Radiant::Config['mailer.post_to_page?'] = true`. see
http://wiki.github.com/radiant/radiant/mailer-extension

i also see that you're trying to send to an @gmail.com address so i'm
guessing that you're using the gmail smtp server; if that's the case
and you're running ruby 1.8.6 you'll need to install the
action_mailer_tls rails plugin.

if none of that helps could you provide more details on your setup.
action mailer config, smtp provider, ruby version, radiant version
etc.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Re: [Radiant] Troubles with mailer extension

2009-10-26 Thread Travis D. Warlick, Jr.
Paula,

You should be using the following tag syntax for the form fields:

   

See the Usage section here: http://github.com/radiant/radiant-mailer-extension

--  
 Travis D Warlick, Jr
 Lead Developer -- Operis Systems




On Oct 26, 2009, at 9:26 AM, María Paula Mariani wrote:

> Hello!
>
> I'm trying to build a contact form using the Mailer extension. I've  
> followed
> step by step the documentation, but I can't find the way.
> When clicking at Submit form, it do not deliver the message and  
> forward to
> this path /pages/84/mail#mailer
>
> I'm using 2 forms inside the same Page. One called form1 and the other
> form2. Is it the right way of doing it?
>
> I've a page called mail, with 2 page parts: mailer and email
>
> Mail
>
> 
>  
>  Enter your contact information and message.
>  Your name *  name='name' class='input'/>
>  Your Company *
> 
>  Your E-mail 
>  Your message *
>  
>  
>  
> 
>
> Mailer
>
>  subject: "Contact from website"
>  from_field: email
>  recipients:
>-  paulamari...@gmail.com
>
>
> Email
>
> from: 
> company: 
> email: 
> message:
> 
>
>
> and the configuration .rb is properly configured.
> Any clues?
>
> Thanks very much!
>
> -- 
> Paula
> ___
> Radiant mailing list
> Post:   Radiant@radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

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


[Radiant] Troubles with mailer extension

2009-10-26 Thread María Paula Mariani
Hello!

I'm trying to build a contact form using the Mailer extension. I've followed
step by step the documentation, but I can't find the way.
When clicking at Submit form, it do not deliver the message and forward to
this path /pages/84/mail#mailer

I'm using 2 forms inside the same Page. One called form1 and the other
form2. Is it the right way of doing it?

I've a page called mail, with 2 page parts: mailer and email

Mail


  
  Enter your contact information and message.
  Your name * 
  Your Company *

  Your E-mail 
  Your message *
  
  
  


Mailer

  subject: "Contact from website"
  from_field: email
  recipients:
-  paulamari...@gmail.com


Email

from: 
company: 
email: 
message:



and the configuration .rb is properly configured.
Any clues?

Thanks very much!

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