ruby-hyperloop / hyperloop

The project has moved to Hyperstack!! - hyperloop master gem - includes all other hyperloop gems
https://hyperstack.org/
MIT License
71 stars 14 forks source link

config/initializer/hyperloop.rb make `rake db:create` failed. #9

Closed zw963 closed 7 years ago

zw963 commented 7 years ago

basically, I just follow guide to setup a runable rails project.

when I settings done, I run rails g hyper:component Helloworld to start code.

But, I got: database "hyperloop_webpacker_example_development" does not exist.

It fine, I know I should run rake db:create, but when I run it, i got same error:

/home/zw963/.rvm/gems/ruby-2.3.4/gems/activerecord-5.1.2/lib/active_record/connection_adapters/postgresql_adapter.rb:705:in `rescue in connect': FATAL:  database "hyperloop_webpacker_example_development" does not exist

It just a dependency deep loop.

the only way is: comment all code in config/initializer/hyperloop.rb, then run db:create, and then uncomment .

zw963 commented 7 years ago

This is a issue about forget to run rails g hyperloop:install.

sorry.