Givdo / givdo_api_server

1 stars 0 forks source link

Error running db:migrate #30

Closed balajisubr closed 7 years ago

balajisubr commented 7 years ago

Greetings everybody,

I am a new volunteer planning to work on this project shortly. I am trying to setup this app locally on my computer and I get an error while running the rake db:migrate command as follows: :~/givdo_api_server$ rake db:migrate rake aborted! Bundler::GemRequireError: There was an error while trying to load the gem 'activeadmin'. Gem Load Error is: Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes. Backtrace for gem load error is: /home/.gem/ruby/2.3.1/gems/execjs-2.7.0/lib/execjs/runtimes.rb:58:in autodetect' /home/.gem/ruby/2.3.1/gems/execjs-2.7.0/lib/execjs.rb:5:in' /home/.gem/ruby/2.3.1/gems/execjs-2.7.0/lib/execjs.rb:4:in `<top (required)>' Any inputs on getting this resolved would be appreciated.

marcelkooi commented 7 years ago

Hi Balaji,

Do you have node installed?

On Apr 30, 2017, at 7:20 PM, Balaji Subramanian notifications@github.com wrote:

Greetings everybody,

I am a new volunteer planning to work on this project shortly. I am trying to setup this app locally on my computer and I get an error while running the rake db:migrate command as follows: balaji@balaji-ubuntu:~/givdo_api_server$ rake db:migrate rake aborted! /code Bundler::GemRequireError: There was an error while trying to load the gem 'activeadmin'. Gem Load Error is: Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes. Backtrace for gem load error is: /home/.gem/ruby/2.3.1/gems/execjs-2.7.0/lib/execjs/runtimes.rb:58:in autodetect' /home/.gem/ruby/2.3.1/gems/execjs-2.7.0/lib/execjs.rb:5:inmodule:ExecJS' /home/.gem/ruby/2.3.1/gems/execjs-2.7.0/lib/execjs.rb:4:in `<top (required)>' Any inputs on getting this resolved would be appreciated.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

balajisubr commented 7 years ago

@marz0 Thanks for pointing out. I have installed Node and it now works. But when I run the following command, it errors out rake givdo:admin:create rake aborted! ActiveRecord::RecordInvalid: Validation failed: Email can't be blank, Password can't be blank

I have manually created the admin for now.

diegotoral commented 7 years ago

You missed the email and password. Try something like rake givdo:admin:create["email@example.com","password123"]