Website moved

Posted about 1 year ago

Well as far as the website goes, the move has been made. It wasn’t a total success but I’m just glad I now have full control to configure everything the way I want it. I unfortunately answered wrong when I told the BlueHost representative that I didn’t need any files off the server. I had a backup of my files but not the database. Which really sucks because two days earlier I had written a database backup script and put it in cron. I did take the content out of Google’s page caches and recreated some of the blogs from it. Anyway things will be much better now and I can’t wait to test my capabilities. It may not look different but the site will have a much faster response time now. FastCGI was just bogging it down especially on shared hosting. I will also be able to set up better caching. I have yet to setup a mail server but I have other things to focus on at the moment, perhaps I will get that done either later today or more likely tomorrow.

I am using “Capistrano” to deploy now so I have been heavily customizing its tasks as well. You can do some interesting things with “Capistrano” many of which are even beyond my skill and creativity. For instance the default deploy:restart task wasn’t working with my application. I could have investigated the issue but instead I figured why not just write a new one since its a simple command to restart my Mongrel clusters. I took this code snippet I found here and modified it to just replace the default tasks as shown below.

namespace :deploy do
  [ :start, :restart, :stop ].each do |t|
    desc "#{t.to_s.capitalize} mongrel using mongrel_cluster_ctl"
    task t, :roles => :app do
      sudo "mongrel_cluster_ctl #{t.to_s} -c #{mongrel_conf}"
    end
  end
end

Since we are using the same namespace:task scheme these will get called in place of the default tasks. If you want to keep the defaults in place just change the namespace to suit your needs and add in the proper hooks.

I’m out of here for now

Sean

Posted in , , ,  | no comments

Comments

(leave url/email »)

   Comment Markup Help Preview comment