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
| lock '3.3.5' | |
| set :application, 'app' | |
| set :repo_url, '' | |
| set :branch, 'master' | |
| set :user, 'deploy' | |
| set :deploy_to, '/var/www/app' |
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
| module StringExtensions | |
| refine String do | |
| # "Brute force" underscore the string. | |
| # Removes any non-alpha characters for clean symbol ready strings. | |
| def brute_underscore | |
| self.gsub(/::/, '/'). | |
| gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2'). | |
| gsub(/([a-z\d])([A-Z])/,'\1_\2'). | |
| gsub(/([\\][\"])/,''). | |
| tr('-', '_'). |
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
| # /config/initializers/airbrake.rb | |
| Airbrake.configure do |config| | |
| config.api_key = Figaro.env.airbrake_api_key | |
| config.host = Figaro.env.airbrake_host | |
| config.port = 80 | |
| config.secure = config.port == 443 | |
| end |
NewerOlder