Category Archives: Resources

Website thumbnail using API

Just recently, I have developed a page cast module for Greenarrow.com to show users profile’s thumbnail image on the fly. Before doing that I have googling and found couple of good solutions: thumboo.com webthumbnail.org and webthumb.bluga.net etc. webthumb.bluga.net is the best solution in between those though it’s depend on windows hosting. You can have a…

Read More

Rails application deployment using shell script

I have used following shell script to deploy one of my Ruby on Rails applications: DATES=`date +%Y%m%d%H%I%S`service apache2 stop &&mysqldump -u[user] -p[pass] [yourdbname] > “your backup directory”[yourdbname]_${DATES}.sqlgit pull &&bundle install –path [your bundle path] &&bundle exec rake db:migrate RAILS_ENV=production &&mv [your application’s production log file] [your application’s production log backup path]/production_${DATES}.log &&touch [your application’s production…

Read More