Add the following lines of codes in
public/.htaccess. Rails won’t handle this folders.

  • RewriteCond %{REQUEST_URI}
    ^/(folder-name/|images/|stylesheets/|javascripts/).*
    RewriteRule .* - [L]

Add the following lines in your
environment.rb and replace the values with your settings. (mail server name, server
name, email address, password)

config.action_mailer.server_settings= {
:address => ‘mail.servername.com’,
:port => 25,
:domain => ’servername’,
:user_name => ‘email-address-to-authenticate’,
:password => ‘password-to-authenticate’,
:authentication => :login
(or)
:authentication => :plain (if you are not providing password to
authenticate)
}

The following is the way to write cron task
in the media temple grid-server.

/usr/bin/curl [url]

[url] - This URL should point to some controller which does the task
for you.

(eg.) - /usr/bin/curl http://neilsys.com/cron/invoke_function

The time to invoke the cron and other settings can be done using the
control-manager in the media temple.

Dear Manager (HR),

  • Vivek, my assistant programmer, can always be found
  • hard at work in his cubicle. Vivek works independently, without
  • wasting company time talking to colleagues. Vivek never
  • thinks twice about assisting fellow employees, and he always
  • finishes given assignments on time. Often Vivek takes extended
  • measures to complete his work, sometimes skipping coffee
  • breaks. Vivek is a dedicated individual who has absolutely no
  • vanity in spite of his high accomplishments and profound
  • knowledge in his field. I firmly believe that Vivek can be
  • classed as a high-calibre employee, the type which cannot be
  • dispensed with. Consequently, I duly recommend that Vivek be
  • promoted to executive management, and a proposal will …
  • Page 38 of 46« First...«3637383940»...Last »

    Categories and Tags

    Advertising