Created
January 25, 2011 18:40
-
-
Save tal/795372 to your computer and use it in GitHub Desktop.
Definition of the gg alias.
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
| function gg { freyr $@ --config-file="/web/Freyrfile" --ignore-local --namespace=gg; } |
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
| service :memcached do | |
| start 'memcached -vvv' | |
| proc_match /^memcached/ | |
| end | |
| service :nginx do | |
| conf_file = '/web/tools/config/nginx/nginx-' | |
| conf_file << 'a' if File.exist? '/web/assets' | |
| conf_file << 'r' if File.exist? '/web/gilt' | |
| conf_file << 'b' if File.exist? '/web/blackbird' | |
| conf_file << 's' if File.exist? '/web/swift' | |
| conf_file << 'c' if File.exist? '/web/cityswift' | |
| conf_file << '.conf' | |
| start "nginx -c #{conf_file}" | |
| stop "#{start} -s stop" | |
| restart "#{start} -s reload" | |
| use_sudo | |
| proc_match /^nginx: master process.+\/web\/tools/ | |
| end | |
| namespace :gg | |
| service :inv do | |
| group :city | |
| also_as :inventory_service | |
| start 'ant && bin/dev_inventory.sh file:config/default_config.yaml' | |
| dir '/web/inventory_service' | |
| proc_match 'com.gilt.inventory.server.InventoryService' | |
| ping 'http://localhost:8082/inventory_service/sale_summary' | |
| end | |
| service :stack do | |
| group :city | |
| start './gilt-services.sh' | |
| dir '/web/service_stack' | |
| proc_match /service_stack.+com\.gilt\.svc\.framework\.GiltService/ | |
| ping 'http://localhost:6001/cart_service/get' | |
| end | |
| service :affiliate do | |
| group :city | |
| start 'ant && bin/start-dev.sh file:config/us/dev_config.yml' | |
| dir '/web/affiliate_service' | |
| proc_match /affiliate_service.+com\.gilt\.svc\.framework\.GiltService/ | |
| ping 'http://localhost:7002/affiliate_service/affiliate_service/get_offer_for_affiliate_offer' | |
| end | |
| service :cityswift do | |
| start 'ant && bin/dev.sh' | |
| group :city | |
| dir '/web/cityswift' | |
| proc_match 'com.gilt.swift.svc.SwiftServer' | |
| ping 'http://city.localhost/newyork/' | |
| end | |
| service :blackbird do | |
| group :city, :g | |
| also_as :bb | |
| start 'script/dev.sh' | |
| dir '/web/blackbird' | |
| proc_match /java.+BlackBird.+rackup config.ru/ | |
| ping 'http://localhost/ml' | |
| end | |
| service :assets do | |
| group :city, :g | |
| start 'ruby application.rb' | |
| dir '/web/assets' | |
| end | |
| service :rails do | |
| group :city, :g | |
| also_as :gilt | |
| start false | |
| stop false | |
| restart 'touch tmp/restart.txt' | |
| dir '/web/gilt' | |
| proc_match /^PassengerNginxHelperServer/ | |
| end | |
| service :extranet_service do | |
| group :ex | |
| also_as :exs | |
| start 'ant && bin/dev.sh' | |
| dir '/web/city_extranet_service' | |
| proc_match /extranet_service.+com\.gilt\.svc\.framework\.GiltService/ | |
| ping 'http://localhost:7301/city_extranet_service/find_packages?user_guid=1b19cc70-3227-012c-ede6-0015177452a4' | |
| end | |
| service :city_extranet do | |
| start 'ant && bin/dev.sh' | |
| group :ex | |
| also_as :extranet | |
| dir '/web/city_extranet' | |
| proc_match 'com.cityextranet.swift.svc.CityExtranetSwiftServer' | |
| ping 'http://city.localhost/extranet/login/' | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment