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
| after "deploy:stop", "clockwork:stop" | |
| after "deploy:start", "clockwork:start" | |
| after "deploy:restart", "clockwork:restart" | |
| namespace :clockwork do | |
| desc "Stop clockwork" | |
| task :stop, :roles => clockwork_roles, :on_error => :continue, :on_no_matching_servers => :continue do | |
| run "if [ -d #{current_path} ] && [ -f #{pid_file} ]; then cd #{current_path} && kill -INT `cat #{pid | |
| _file}` ; fi" | |
| end |
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
| # lib/omniauth-adwords-oauth2.rb | |
| require "omniauth-google-oauth2" | |
| class AdwordsOauth2 < OmniAuth::Strategies::GoogleOauth2 | |
| option :name, 'adwords_oauth2' | |
| end | |
| # config/initializers/omniauth.rb | |
| require "omniauth-adwords-oauth2" |
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
| <?php defined('SYSPATH') or die('No direct script access.'); | |
| // -- Environment setup -------------------------------------------------------- | |
| // Load the core Kohana class | |
| require SYSPATH.'classes/kohana/core'.EXT; | |
| if (is_file(APPPATH.'classes/kohana'.EXT)) | |
| { | |
| // Application extends the core |
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
| # -------------------------------------------- | |
| # General | |
| # -------------------------------------------- | |
| set :shared_children, %w(cache logs) # Shared directories, these directories contain generated content which should not be wiped out during deployments. | |
| set :application, "domain.com" # Application name | |
| set :deploy_to, "/var/www/#{application}/#{stage}" # Path where files are deployed to ... | |
| # -------------------------------------------- | |
| # Server | |
| # -------------------------------------------- |