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
bundle exec foreman export bluepill --template=/data/bluepill/ /etc/init |
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
apt-get install ufw -y | |
ufw allow ssh/tcp | |
ufw allow 80 | |
ufw allow 443 | |
ufw logging on | |
ufw enable |
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
Generating dummy Rails application... | |
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.8 | |
Setting up dummy database... | |
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.8 | |
Generating dummy Rails application... | |
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.8 | |
Setting up dummy database... | |
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.8 | |
Generating dummy Rails application... | |
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.8 |
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
p = Spree::Product.find_by_name('Ruby on Rails Bag') | |
si = p.master.stock_items.first | |
si.update_attribute(:count_on_hand, 0) | |
sl = Spree::StockLocation.create(name: 'Second Location') | |
sl.stock_items.create(variant: p.master, count_on_hand: 10) | |
sl.active = true | |
sl.save! |
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
(0.1ms) begin transaction | |
Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = 9 AND "spree_adjustments"."adjustable_type" = 'Spree::LineItem' | |
Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = 3 LIMIT 1 | |
Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."order_id" = 3 | |
SQL (0.3ms) DELETE FROM "spree_line_items" WHERE "spree_line_items"."id" = ? [["id", 9]] | |
(1.1ms) commit transaction | |
Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = 3 AND "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."originator_type" = 'Spree::TaxRate' AND "spree_adjustments"."adjustable_type" = 'Spree::Order' ORDER BY created_at ASC | |
Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" W |
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
(0.1ms) begin transaction | |
Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = 10 AND "spree_adjustments"."adjustable_type" = 'Spree::LineItem' | |
Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = 3 LIMIT 1 | |
Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."order_id" = 3 | |
SQL (0.2ms) DELETE FROM "spree_line_items" WHERE "spree_line_items"."id" = ? [["id", 10]] | |
Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = 3 AND "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."originator_type" = 'Spree::TaxRate' AND "spree_adjustments"."adjustable_type" = 'Spree::Order' ORDER BY created_at ASC | |
Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."o |
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
=> Booting WEBrick | |
=> Rails 3.2.13 application starting in production on http://0.0.0.0:3000 | |
=> Call with -d to detach | |
=> Ctrl-C to shutdown server | |
[2013-04-29 10:40:54] INFO WEBrick 1.3.1 | |
[2013-04-29 10:40:54] INFO ruby 1.9.3 (2012-11-10) [x86_64-darwin12.2.0] | |
[2013-04-29 10:40:54] INFO WEBrick::HTTPServer#start: pid=14908 port=3000 | |
Started GET "/" for 127.0.0.1 at 2013-04-29 10:45:54 +0100 | |
Processing by Spree::HomeController#index as HTML | |
Deface: 2 overrides found for 'spree/layouts/spree_application' |
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
git clone [email protected]:BDQ/demo_endpoint.git | |
cd demo_endpoint | |
bundle install | |
bundle exec rackup -s thin -p 9000 |
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
var resource; | |
resource = railsResourceFactory({ | |
url: '/api/registrations', | |
name: 'registration' | |
availableKeys: function(){ | |
return this.$get(this.$url() + '/available_keys'); | |
} | |
}); |
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
ActionView::Template::Error (undefined method `[]' for nil:NilClass): | |
1: json.message_id @message['message_id'] | |
2: json.locked do | |
3: json.number @locked_order['number'] | |
4: json.locked_at 'locked_at' | |
app/views/orders/lock/consume.json.jbuilder:1:in `_app_views_orders_lock_consume_json_jbuilder___3235425158690258864_28771100' | |
app/controllers/application_controller.rb:14:in `authorize' |