Loomio

Automated setup of development environment - Ubuntu 14.04 LTS

GasparIGasparI Wed 13 Apr 2016 12:12PMPublicSeen by 52

I'm putting together a script to install Loomio dev. env. easily:
https://github.com/sicambria/sh/blob/master/deploy/loomio1404-dev1.sh
https://github.com/sicambria/sh/blob/master/deploy/loomio1404-dev2.sh

It seems good so far. However, at localhost:3000, using email "default@loomio.com" and password "bootstrap_password" I get "Invalid email address or password."

How could I login?

FSF1967

FSF1967Mon 25 Apr 2016 9:42AM

i have the same problem

James Kiesel

James KieselMon 25 Apr 2016 10:53AM

Hm, this should be fixed now, as I've just updated the rake bootstrap task here to output a more useful username / password combination.

Failing this, a really quick way to get into a setup dev environment is to use the routes in app/controllers/development_controller.rb, which is what we use for our automated protractor testing. For example, navigating to localhost:3000/development/setup_discussion will create a fresh user, group, and discussion in the database, and navigate to it automatically.

Beware though that running these development routes does clear out the existing database.

FSF1967

FSF1967Mon 25 Apr 2016 12:06PM

thank you, but sorry i'm not an expert on ruby and special environement used to install Loomio.

what command line must i write to update rake bootstrap ?

Thank you

GasparI

GasparIMon 25 Apr 2016 10:59AM

After trying a few times then I could login - and I got a blank screen.
Then I've purged everything - now I'm struggling with Ruby versions:
Your Ruby version is 1.9.3, but your Gemfile specified 2.3.0

$ rbenv global
2.3.0

$ ruby -v
ruby 1.9.3p551 (2014-11-13) [x86_64-linux] Brightbox

GasparI

GasparIMon 25 Apr 2016 12:25PM

Ruby issue went away after running apt-get autoremove.

@jameskiesel
When I'd like to run "rake bootstrap" I get this error now:

$ rails c
Loading development environment (Rails 4.2.5.2)
irb: warn: can't alias context from irb_context.
irb(main):001:0> rake bootstrap
NameError: undefined local variable or method bootstrap' for main:Object
from (irb):1
from /var/lib/gems/2.3.0/gems/railties-4.2.5.2/lib/rails/commands/console.rb:110:in
start'
from /var/lib/gems/2.3.0/gems/railties-4.2.5.2/lib/rails/commands/console.rb:9:in start'
from /var/lib/gems/2.3.0/gems/railties-4.2.5.2/lib/rails/commands/commands_tasks.rb:68:in
console'
from /var/lib/gems/2.3.0/gems/railties-4.2.5.2/lib/rails/commands/commands_tasks.rb:39:in run_command!'
from /var/lib/gems/2.3.0/gems/railties-4.2.5.2/lib/rails/commands.rb:17:in
'
from script/rails:6:in require'
from script/rails:6:in
'

GasparI

GasparIMon 25 Apr 2016 12:34PM

Sorry, the previous command was entered to the rails console - not the right place. However, still not good. The rest of the error log is attached:

~/projects/loomio$ rake bootstrap --trace
** Invoke bootstrap (first_time)
** Execute bootstrap
Hold on, project is starting
** Invoke bootstrap:dependencies (first_time)
** Execute bootstrap:dependencies
rake aborted!
Airbrake::Error: the 'default' notifier isn't configured

James Kiesel

James KieselMon 25 Apr 2016 1:18PM

Should be fixed in the latest; try pulling down master and running rake bootstrap from the command line. (it looks like in your previous post you're running rake bootstrap from the rails console?)

GasparI

GasparIMon 25 Apr 2016 1:30PM

Yes, by mistake. But then I ran it outside the console - that gave the "Airbrake" error message.

FSF1967

FSF1967Mon 25 Apr 2016 1:29PM

ok
so i run "rake bootstrap" and after "rails s"

I open the url "localhost:3000", write the login an password (it'seems working) and i arrived on a blank page with url "localhost:3000/profile"

I can make nothing of other one because no action is possible on this blank page

FSF1967

FSF1967Mon 25 Apr 2016 2:28PM

this is the message in the rail's terminal when i'm trying to open admin session with default@loomio.com and the right password

Load More