This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user www-data; | |
worker_processes 4; | |
pid /run/nginx.pid; | |
events { | |
worker_connections 768; | |
# multi_accept on; | |
} | |
http { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ember.Handlebars.registerBoundHelper 'testing-helper', (el0)-> | |
new Handlebars.SafeString("<b>Debug Handlebar! 0 args</b> #{el0}") | |
Ember.Handlebars.registerBoundHelper 'testing-helper-1', (el0)-> | |
new Handlebars.SafeString("<b>Debug Handlebar! 1 arg</b> #{el0}") | |
Ember.Handlebars.registerBoundHelper 'testing-helper-2', (el0, el1)-> | |
new Handlebars.SafeString("<b>Debug Handlebar! 2 args</b> #{el0} #{el1}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
module Spree | |
module Core | |
module ProductFilters | |
if Spree::Property.table_exists? | |
Spree::Product.add_search_scope :color_filer do |*opts| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
My unicorn and nginx configuration | |
use ln -s and place new_app in 'sites-enabled' folder | |
usefull commands: | |
lsof -wni tcp:8080 - get PID of all unicorn processes | |
kill -9 PID - kill process | |
nginx -s reload - reload nginx | |
unicorn_rails -c /home/workspace/new_app/config/unicorn.rb -D - starts unicorn server |
NewerOlder