y-takey/rails-dashboard

Not work with Rails4.2.9

raykin opened this issue · 3 comments

I've tried using it on my iTerm2, but not work. It first show Booting... in the center screen then nothing happened. There are no rails and ruby process too.
I use

npx rails-dashboard rails s

to start.
Here is a few env.

~/studio/captivereach (self-learn ✘)✹ ᐅ node --version
v8.4.0
~/studio/captivereach (self-learn ✘)✹ ᐅ npm --version
5.4.2
~/studio/captivereach (self-learn ✘)✹ ᐅ bundle list rails
b/Users/raykin/.rbenv/versions/2.2.7/lib/ruby/gems/2.2.0/gems/rails-4.2.9
~/studio/captivereach (self-learn ✘)✹ ᐅ bundle list puma
/Users/raykin/.rbenv/versions/2.2.7/lib/ruby/gems/2.2.0/gems/puma-3.10.0

There are no log in development.log
So where can I get more debug informations?

Hi @raykin ,

Thanks for the report :)
Unfortunately, currently supported rails is 5.1 or higher. but if you need to support rails 4.2, I will support one. It may also take while.

@y-takey thanks for your response. Actually I can help the process too if you can give me advice on how it work or where I can find the logs. I guess somewhere should happen crash.

Awesome!
This tool don't output logs, so you should debug to find the problem. see README about how to develop.

  1. here is point that execute the rails process actually. Please try to output the log. e.g.
console.log("parameter:", command, args);  // ADD thils line
const child = spawn(command, args, {
  stdio: [null, null, null, null],
  detached: true
});
  1. here is follows all rails logs. add console.log to see the logs. Then try to check the log format and expected format in parser.js .
const ret = lines.map(line => {
  console.log(line); // ADD this line
  const l = removeANSIstyles(line).trim();