Chris Wilson
09/23/2022, 2:29 AMuser.spree_roles << Spree::Role.find_or_create_by(name: 'admin')
waiting_for_dev
09/23/2022, 4:10 AMelia
09/23/2022, 11:37 AMSpree.user_class
?Chris Wilson
09/23/2022, 3:23 PMelia
09/23/2022, 3:29 PMgem install rails
rails new my_brand_new_store --skip-javascript
cd my_brand_new_store
bundle add solidus
bin/rails g solidus:install
Chris Wilson
09/23/2022, 3:48 PMelia
09/23/2022, 3:49 PMChris Wilson
09/23/2022, 3:50 PMelia
09/23/2022, 3:50 PMChris Wilson
09/23/2022, 3:52 PMelia
09/23/2022, 3:53 PMSolidus has been installed successfully. You're all ready to go!
Enjoy!
my_brand_new_store:master ⤑ bin/rails c /t/my_brand_new_store
/Users/elia/.asdf/installs/ruby/2.7.6/lib/ruby/2.7.0/net/protocol.rb:66: warning: already initialized constant Net::ProtocRetryError
/Users/elia/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/net-protocol-0.1.3/lib/net/protocol.rb:68: warning: previous definition of ProtocRetryError was here
/Users/elia/.asdf/installs/ruby/2.7.6/lib/ruby/2.7.0/net/protocol.rb:206: warning: already initialized constant Net::BufferedIO::BUFSIZE
/Users/elia/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/net-protocol-0.1.3/lib/net/protocol.rb:208: warning: previous definition of BUFSIZE was here
/Users/elia/.asdf/installs/ruby/2.7.6/lib/ruby/2.7.0/net/protocol.rb:503: warning: already initialized constant Net::NetPrivate::Socket
/Users/elia/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/net-protocol-0.1.3/lib/net/protocol.rb:504: warning: previous definition of Socket was here
Loading development environment (Rails 7.0.4)
irb: warn: can't alias context from irb_context.
>> Spree::User.first
Spree::User Load (0.2ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL ORDER BY "spree_users"."id" ASC LIMIT ? [["LIMIT", 1]]
=> #<Spree::User id: 1, email: "admin@example.com", persistence_token: nil, perishable_token: nil, last_request_at: nil, login: "admin@example.com", ship_address_id: nil, bill_address_id: nil, created_at: "2022-09-23 15:51:13.706562000 +0000", updated_at: "2022-09-23 15:51:13.725575000 +0000", spree_api_key: [FILTERED], authentication_token: nil, deleted_at: nil>
>> Spree::User.first.spree_roles
Spree::User Load (0.2ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL ORDER BY "spree_users"."id" ASC LIMIT ? [["LIMIT", 1]]
Spree::Role Load (0.1ms) SELECT "spree_roles".* FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]
=>
[#<Spree::Role:0x0000000112c89188
id: 1,
name: "admin",
created_at: Fri, 23 Sep 2022 15:51:12.115639000 UTC +00:00,
updated_at: Fri, 23 Sep 2022 15:51:12.115639000 UTC +00:00>]
>>
solidus:install --auto-accept
gem install rails
rails new my_brand_new_store --skip-javascript
cd my_brand_new_store
bundle add solidus
bin/rails g solidus:install --auto-accept
Chris Wilson
09/23/2022, 4:01 PMbundle install
before trying to start your applicationelia
09/23/2022, 4:06 PMgem 'apparition', '~> 0.6.0', github: 'twalpole/apparition'
my_brand_new_store:master ⤑ bundle info apparition /t/my_brand_new_store
* apparition (0.6.0 ca86be4)
Summary: Chrome driver using CDP for Capybara
Homepage: <https://github.com/twalpole/apparition>
Path: /Users/elia/.asdf/installs/ruby/3.1.1/lib/ruby/gems/3.1.0/bundler/gems/apparition-ca86be4d54af
my_brand_new_store:master ⤑ /t/my_brand_new_store
Chris Wilson
09/23/2022, 4:09 PMbundle info [gemname]
to see where a bundled gem is installed.
generate solidusauthinstall --skip_migrations=true
rails generate solidusauthinstall --skip_migrations=true
create config/initializers/devise.rb
run bundle exec rake railtiesinstallmigrations FROM=solidus_auth from "."
Copied migration 20220923160348_create_users.solidus_auth.rb from solidus_auth
Copied migration 20220923160349_rename_columns_for_devise.solidus_auth.rb from solidus_auth
Copied migration 20220923160350_convert_user_remember_field.solidus_auth.rb from solidus_auth
Copied migration 20220923160351_add_reset_password_sent_at_to_spree_users.solidus_auth.rb from solidus_auth
Copied migration 20220923160352_make_users_email_index_unique.solidus_auth.rb from solidus_auth
Copied migration 20220923160353_add_deleted_at_to_users.solidus_auth.rb from solidus_auth
Copied migration 20220923160354_add_confirmable_to_users.solidus_auth.rb from solidus_auth
Copied migration 20220923160355_add_reset_password_token_index_to_spree_users.solidus_auth.rb from solidus_auth
Copied migration 20220923160356_add_unconfirmed_email_to_spree_users.solidus_auth.rb from solidus_auth
break down solidus
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies......
Removing gems from /Users/chriswilson/my_brand_new_store/Gemfile
solidus (~> 3.2) was removed.
installing solidus_starter_frontend
/Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/source/git/git_proxy.rb224in `allowed_with_path': The git source https://github.com/twalpole/apparition.git is not yet checked out. Please run bundle install
before trying to start your application (Bundler::GitError)
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/source/git/git_proxy.rb190in `find_local_revision'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/source/git/git_proxy.rb62in `revision'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/source/git.rb234in `revision'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/source/git.rb103in `install_path'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/source/path.rb133in `expanded_path'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/source/path.rb174in `load_spec_files'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/source/git.rb211in `load_spec_files'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/source/path.rb107in `local_specs'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/source/git.rb178in `specs'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/source/rubygems_aggregate.rb35in `block (2 levels) in build_index'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/source/rubygems_aggregate.rb33in `each'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/source/rubygems_aggregate.rb33in `block in build_index'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/index.rb9in `build'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/source/rubygems_aggregate.rb30in `build_index'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/source/rubygems_aggregate.rb12in `initialize'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/definition.rb831in `new'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/definition.rb831in `source_requirements'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/definition.rb488in `resolver'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/definition.rb290in `resolve'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/definition.rb501in `materialize'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/definition.rb197in `specs'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/definition.rb254in `specs_for'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/runtime.rb18in `setup'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler.rb162in `setup'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/setup.rb20in `block in <top (required)>'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/ui/shell.rb136in `with_level'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/ui/shell.rb88in `silence'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/setup.rb20in `<top (required)>'
from <internal/Users/chriswilson/.rubies/ruby 3.1.2/lib/ruby/3.1.0/rubygems/core ext/kernel require.rb>85:in `require'
from <internal/Users/chriswilson/.rubies/ruby 3.1.2/lib/ruby/3.1.0/rubygems/core ext/kernel require.rb>85:in `require'
/Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/source/git/git_proxy.rb224in `allowed_with_path': The git source https://github.com/twalpole/apparition.git is not yet checked out. Please run bundle install
before trying to start your application (Bundler::GitError)
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/source/git/git_proxy.rb190in `find_local_revision'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/source/git/git_proxy.rb62in `revision'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/source/git.rb234in `revision'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/source/git.rb103in `install_path'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/source/path.rb133in `expanded_path'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/source/path.rb174in `load_spec_files'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/source/git.rb211in `load_spec_files'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/source/path.rb107in `local_specs'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/source/git.rb178in `specs'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/source/rubygems_aggregate.rb35in `block (2 levels) in build_index'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/source/rubygems_aggregate.rb33in `each'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/source/rubygems_aggregate.rb33in `block in build_index'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/index.rb9in `build'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/source/rubygems_aggregate.rb30in `build_index'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/source/rubygems_aggregate.rb12in `initialize'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/definition.rb831in `new'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/definition.rb831in `source_requirements'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/definition.rb488in `resolver'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/definition.rb290in `resolve'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/definition.rb501in `materialize'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/definition.rb197in `specs'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/definition.rb254in `specs_for'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/runtime.rb18in `setup'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler.rb162in `setup'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/setup.rb20in `block in <top (required)>'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/ui/shell.rb136in `with_level'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/ui/shell.rb88in `silence'
from /Users/chriswilson/.gem/ruby/3.1.2/gems/bundler-2.3.22/lib/bundler/setup.rb20in `<top (required)>'
from <internal/Users/chriswilson/.rubies/ruby 3.1.2/lib/ruby/3.1.0/rubygems/core ext/kernel require.rb>85:in `require'
from <internal/Users/chriswilson/.rubies/ruby 3.1.2/lib/ruby/3.1.0/rubygems/core ext/kernel require.rb>85:in `require'
running migrations
rake db:migrate VERBOSE=false
The git source https://github.com/twalpole/apparition.git is not yet checked out. Please run bundle install
before trying to start your application
loading seed data
rake db:seed AUTO_ACCEPT=1
The git source https://github.com/twalpole/apparition.git is not yet checked out. Please run bundle install
before trying to start your application
loading sample data
rake spree_sample:load
The git source https://github.com/twalpole/apparition.git is not yet checked out. Please run bundle install
before trying to start your application
insert config/routes.rb
**************************************************
We added the following line to your application's config/routes.rb file:
mount Spree:Core:Engine, at: '/'
**************************************************
Solidus has been installed successfully. You're all ready to go!
Enjoy!elia
09/23/2022, 4:13 PMChris Wilson
09/23/2022, 4:15 PMgem install rails
rails new my_brand_new_store --skip-javascript
cd my_brand_new_store
bundle add solidus
bin/rails g solidus:install --auto-accept
elia
09/23/2022, 4:16 PMbundle config list
?Chris Wilson
09/23/2022, 4:17 PMelia
09/23/2022, 4:18 PMFROM ruby:3.1
RUN apt-get update && apt-get install -y nodejs
RUN gem update --system
RUN gem install bundler rails solidus
RUN rails new my_brand_new_store --skip-javascript
WORKDIR my_brand_new_store
RUN bundle add solidus
and the command ran with:
docker run -it 3032005215d9d5dca97738a407be940ead81c7e007ed7f30aef9d2aa0b241078 bin/rails g solidus:install --auto-accept
I didn’t have encounter any error, so I suggest trying to update both ruby gems and bundler and see if anything changes