Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step api rake db:seed not going through #63

Open
yohandh opened this issue Sep 28, 2018 · 1 comment
Open

Step api rake db:seed not going through #63

yohandh opened this issue Sep 28, 2018 · 1 comment

Comments

@yohandh
Copy link

yohandh commented Sep 28, 2018

It's pause on Email and Password steps:

$ rake db:seed
Please add the following to your Gemfile to avoid polling for changes:
gem 'wdm', '>= 0.1.0' if Gem.win_platform?
Please add the following to your Gemfile to avoid polling for changes:
gem 'wdm', '>= 0.1.0' if Gem.win_platform?
loading ruby C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/spree_core-3.6.1/db/default/spree/countries.rb
loading ruby C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/spree_core-3.6.1/db/default/spree/default_reimbursement_type.rb
loading ruby C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/spree_core-3.6.1/db/default/spree/promotions.rb
Loaded Option Types samples
Loaded Option Values samples
Loaded Tax Categories samples
Loaded Shipping Categories samples
Loaded Products samples
loading ruby C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/spree_core-3.6.1/db/default/spree/roles.rb
loading ruby C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/spree_core-3.6.1/db/default/spree/states.rb
loading ruby C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/spree_core-3.6.1/db/default/spree/stores.rb
loading ruby C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/spree_core-3.6.1/db/default/spree/zones.rb
loading ruby C:/Ruby25-x64/lib/ruby/gems/2.5.0/bundler/gems/spree_auth_devise-f155d176565f/db/default/users.rb
Create the admin user (press enter for defaults).
Email [[email protected]]:
Password [spree123]:

@yohandh
Copy link
Author

yohandh commented Sep 28, 2018

I manage to resolve this issue. Here are the steps:

  1. Open: C:\Ruby25-x64\lib\ruby\gems\2.5.0\bundler\gems\spree_auth_devise-f155d176565f\db\default\users.rb

  2. Change q.echo = false to q.echo = true under prompt_for_admin_password function. (Line is 10)

  3. Then remove the tables from database.

  4. Run below scripts from start:
    rake db:migrate
    rake db:seed
    rake spree_sample:load

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant