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
| set :stage, :production | |
| # Simple Role Syntax | |
| # ================== | |
| # Supports bulk-adding hosts to roles, the primary | |
| # server in each group is considered to be the first | |
| # unless any hosts have the primary property set. | |
| role :app, %w{[email protected]} | |
| role :web, %w{[email protected]} | |
| role :db, %w{[email protected]} |
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
| set :stage, :production | |
| # Simple Role Syntax | |
| # ================== | |
| # Supports bulk-adding hosts to roles, the primary | |
| # server in each group is considered to be the first | |
| # unless any hosts have the primary property set. | |
| role :app, %w{[email protected]} | |
| role :web, %w{[email protected]} | |
| role :db, %w{[email protected]} |
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
| vagrant@precise64:/vagrant$ bundle exec cap production deploy | |
| [deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip valid ation of your locale you can set I18n.enforce_available_locales = false to avoid this message. | |
| DEBUG [afe989d0] Running /usr/bin/env [ -d ~/.rvm ] on domain.com | |
| DEBUG [afe989d0] Command: [ -d ~/.rvm ] | |
| cap aborted! | |
| minersource | |
| /home/vagrant/.rvm/gems/ruby-2.0.0-p353/gems/net-ssh-2.7.0/lib/net/ssh.rb:215:in `start' | |
| /home/vagrant/.rvm/gems/ruby-2.0.0-p353/gems/sshkit-1.2.0/lib/sshkit/backends/netssh.rb:169:in `ssh' | |
| /home/vagrant/.rvm/gems/ruby-2.0.0-p353/gems/sshkit-1.2.0/lib/sshkit/backends/netssh.rb:122:in `block in _execut e' | |
| /home/vagrant/.rvm/gems/ruby-2.0.0-p353/gems/sshkit-1.2.0/lib/sshkit/backends/netssh.rb:119:in `tap' |
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
| # --- Ruby --------------------------------------------------------------------- | |
| exec { 'install_rvm': | |
| command => "${as_vagrant} 'curl -L https://get.rvm.io | bash -s stable'", | |
| creates => "${home}/.rvm/bin/rvm", | |
| require => Package['curl'] | |
| } | |
| exec { 'install_ruby': | |
| # We run the rvm executable directly because the shell function assumes an |
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
| I, [2013-12-14T13:07:34.660859 #2864] INFO -- : Started GET "/" for 172.7.224.72 at 2013-12-14 13:07:34 +0000 | |
| F, [2013-12-14T13:07:34.662582 #2864] FATAL -- : | |
| ActionController::RoutingError (No route matches [GET] "/"): | |
| actionpack (4.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' | |
| actionpack (4.0.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' | |
| railties (4.0.2) lib/rails/rack/logger.rb:38:in `call_app' | |
| railties (4.0.2) lib/rails/rack/logger.rb:20:in `block in call' | |
| activesupport (4.0.2) lib/active_support/tagged_logging.rb:67:in `block in tagged' | |
| activesupport (4.0.2) lib/active_support/tagged_logging.rb:25:in `tagged' | |
| activesupport (4.0.2) lib/active_support/tagged_logging.rb:67:in `tagged' |
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
| 2.0.0 :001 > Spree::User | |
| => Spree::User(id: integer, encrypted_password: string, password_salt: string, email: string, remember_token: string, persistence_token: string, reset_password _token: string, perishable_token: string, sign_in_count: integer, failed_attempt s: integer, last_request_at: datetime, current_sign_in_at: datetime, last_sign_i n_at: datetime, current_sign_in_ip: string, last_sign_in_ip: string, login: stri ng, ship_address_id: integer, bill_address_id: integer, authentication_token: st ring, unlock_token: string, locked_at: datetime, reset_password_sent_at: datetim e, created_at: datetime, updated_at: datetime, spree_api_key: string, remember_c reated_at: datetime) |
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
| minersource@li667-242:~/apps/minersource/current$ bundle exec rake deface:test_a ll | |
| [WARNING] Precompiled views present and Deface is enabled, this can result in ov errides being applied twice. | |
| [deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_av ailable_locales = false to avoid this message. | |
| 0 of 1 override(s) failed for :virtual_path => 'spree/admin/users/edit' | |
| 'api_admin_user_edit_form' reported no failures | |
| 0 of 1 override(s) failed for :virtual_path => 'spree/checkout/registration' | |
| 'auth_user_login_form' reported no failures | |
| 2 of 4 override(s) failed for :virtual_path => 'spree/shared/_nav_bar' | |
| 'auth_shared_login_bar' failed to match :insert_before selector 'li#search-bar' | |
| 'home-link' reported no failures |
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
| undefined method `display_total' for nil:NilClass | |
| Extracted source (around line #13): | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 |
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
| Deface::Override.new( | |
| :virtual_path => "spree/layouts/spree_application", | |
| :name => "banner", | |
| :replace => ".container", | |
| :text => <<-end | |
| <%= render :partial => 'spree/shared/header' %> | |
| <div class="container" id="main_content"> | |
| <% if store_menu? %> | |
| <div id="cart_wrapper"> |
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 Spree | |
| class CoinbaseController < StoreController | |
| # make sure to get rid of this before deploying, lol | |
| skip_before_filter :verify_authenticity_token | |
| def invoice | |
| begin | |
| order_total = BigDecimal.new(current_order.total) | |
| order_total_string = order_total.to_s('F') |