Skip to content

Instantly share code, notes, and snippets.

0x1605E5519A67eDbC862B24610Ef7A241238c7a31

Gems required

  • unicorn
  • unicorn-worker-killer (only on production)

unicorn.rb config

#set path to application
app_name = 'app_name'
app_dir = "/srv/apps/#{app_name}/current"
shared_dir = "/srv/apps/#{app_name}/shared"
#Parent category - Get all products belonging to a parent category.. eg : Silk Sarees
/category/#{parent_category_slug}... /category/silk-sarees
#Sub category - Get all products belonging to a sub category.. eg : Jamdani silk Sarees
/subcategory/#{subcategory_slug}... /subcategory/jamdani-silk-sarees
#Brand - Get all products belonging to a brand.. eg : Jamdani silks
/brand/#{brand_slug}.. /brand/jamdani-silks
#Seller - Get all products belonging to a seller.. eg: uppada silk sarees