- login to 'AWS Management Console' (https://aws.amazon.com/console/)
- from 'Services'(in navbar) choose 'EC2'
- from 'Create Instance' section, click on 'Launch Instance'
- then select 'AMI' (Amazon Machine Image), we will be using 'Ubuntu Server 16.04 LTS (HVM)' as example
- select 'Instance Type' as per your requirement
- then click 'Next:Configure Instance Details' to continue
change 'Configure Instance Details' or used as default settings
This file contains 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
/home/user/.rvm/gems/ruby-3.1.4@openfoodnetwork/gems/activerecord-7.1.3.2/lib/active_record/attribute_methods/serialization.rb:208:in `serialize': missing keyword: :coder If no default coder is configured, a coder must be provided to `serialize`. (ArgumentError) | |
from /home/user/openfoodnetwork/app/models/spree/preference.rb:5:in `<class:Preference>' | |
from /home/user/openfoodnetwork/app/models/spree/preference.rb:4:in `<module:Spree>' | |
from /home/user/openfoodnetwork/app/models/spree/preference.rb:3:in `<main>' | |
from /home/user/.rvm/gems/ruby-3.1.4@openfoodnetwork/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require' | |
from /home/user/.rvm/gems/ruby-3.1.4@openfoodnetwork/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require' | |
from /home/user/.rvm/gems/ruby-3.1.4@openfoodnetwork/gems/zeitwerk-2.6.13/lib/zeitwerk/kernel.rb:26:in `require' | |
from /home/user/openfoodnetwork/app/models/spree/preferences/store.rb:92:in `should_persist?' | |
fro |
This file contains 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
/home/user/.rvm/gems/ruby-3.1.4@openfoodnetuser/gems/actionpack-7.1.3.2/lib/action_dispatch/routing/mapper.rb:228:in `normalize_options!': :to must respond to `action` or `call`, or it must be a String that includes '#' (ArgumentError) | |
from /home/user/.rvm/gems/ruby-3.1.4@openfoodnetuser/gems/actionpack-7.1.3.2/lib/action_dispatch/routing/mapper.rb:135:in `initialize' | |
from /home/user/.rvm/gems/ruby-3.1.4@openfoodnetuser/gems/actionpack-7.1.3.2/lib/action_dispatch/routing/mapper.rb:88:in `new' | |
from /home/user/.rvm/gems/ruby-3.1.4@openfoodnetuser/gems/actionpack-7.1.3.2/lib/action_dispatch/routing/mapper.rb:88:in `build' | |
from /home/user/.rvm/gems/ruby-3.1.4@openfoodnetuser/gems/actionpack-7.1.3.2/lib/action_dispatch/routing/mapper.rb:1995:in `add_route' | |
from /home/user/.rvm/gems/ruby-3.1.4@openfoodnetuser/gems/actionpack-7.1.3.2/lib/action_dispatch/routing/mapper.rb:1967:in `decomposed_match' | |
from /home/user/.rvm/gems/ruby-3.1.4@openfoodnetuser/gems/actionpack-7.1.3.2/lib/action_dispatch/routing/mapper.rb |
This file contains 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
rails app:update | |
conflict config/boot.rb | |
Overwrite /home/user/openfoodnetwork/config/boot.rb? (enter "h" for help) [Ynaqdhm] d | |
- require 'rubygems' | |
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) | |
- # Set up gems listed in the Gemfile. | |
+ require "bundler/setup" # Set up gems listed in the Gemfile. | |
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) | |
+ require "bootsnap/setup" # Speed up boot time by caching expensive operations. |
This file contains 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
``` | |
Check the Rails upgrade guide at https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#new-activesupport-cache-serialization-format | |
for more information on how to upgrade. | |
(called from <main> at /home/work/opensource/openfoodnetwork/config/environment.rb:5) | |
PaperTrail 12.3.0 is not compatible with ActiveRecord 7.1.2. We allow PT | |
contributors to install incompatible versions of ActiveRecord, and this | |
warning can be silenced with an environment variable, but this is a bad | |
idea for normal use. Please install a compatible version of ActiveRecord | |
instead (>= 5.2, < 7.1). Please see the discussion in paper_trail/compatibility.rb | |
for details. |
- order
- number
- special instructions
- note
- payment_state
- order cycle
- name
- distributor
- business address
- company
any good resources to write react js unit tests?
Yes, here are some resources for writing unit tests in React:
- Official React documentation: https://reactjs.org/docs/testing.html
- Jest - a popular JavaScript testing framework that works well with React: https://jestjs.io/
- React Testing Library - a library that makes it easy to test React components: https://testing-library.com/docs/react-testing-library/intro
- Enzyme - a JavaScript testing utility for React that makes it easier to assert, manipulate, and traverse your React Components' output: https://enzymejs.github.io/
These resources should provide you with a good starting point for writing effective unit tests in React.
This file contains 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
SELECT "spree_line_items"."id" AS t0_r0, "spree_line_items"."order_id" AS t0_r1, "spree_line_items"."variant_id" AS t0_r2, "spree_line_items"."quantity" AS t0_r3, "spree_line_items"."price" AS t0_r4, "spree_line_items"."created_at" AS t0_r5, "spree_line_items"."updated_at" AS t0_r6, "spree_line_items"."max_quantity" AS t0_r7, "spree_line_items"."currency" AS t0_r8, "spree_line_items"."distribution_fee" AS t0_r9, "spree_line_items"."final_weight_volume" AS t0_r10, "spree_line_items"."tax_category_id" AS t0_r11, "spree_line_items"."weight" AS t0_r12, "spree_line_items"."height" AS t0_r13, "spree_line_items"."width" AS t0_r14, "spree_line_items"."depth" AS t0_r15, "variant"."id" AS t1_r0, "variant"."sku" AS t1_r1, "variant"."weight" AS t1_r2, "variant"."height" AS t1_r3, "variant"."width" AS t1_r4, "variant"."depth" AS t1_r5, "variant"."deleted_at" AS t1_r6, "variant"."is_master" AS t1_r7, "variant"."product_id" AS t1_r8, "variant"."position" AS t1_r9, "variant"."cost_currency" AS t1_r10, "variant"."unit_value" |
This file contains 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
SELECT "spree_line_items".* FROM "spree_line_items" | |
LEFT OUTER JOIN "spree_variants" "variant" | |
ON "variant"."id" = "spree_line_items"."variant_id" | |
LEFT OUTER JOIN "spree_products" "product" | |
ON "product"."id" = "variant"."product_id" | |
LEFT OUTER JOIN "spree_tax_categories" | |
ON "spree_tax_categories"."deleted_at" IS NULL | |
AND "spree_tax_categories"."id" = "product"."tax_category_id" | |
LEFT OUTER JOIN "spree_tax_rates" | |
ON "spree_tax_rates"."deleted_at" IS NULL |
This file contains 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
{ | |
"data": [ | |
{ | |
"producer": "Fred's Farm", | |
"product": "Garlic", | |
"variant": "1g", | |
"quantity": 20, | |
"total_units": "0.02", | |
"curr_cost_per_unit": "20.0", | |
"total_cost": "400.0" |
NewerOlder