Closed CJYate closed 7 years ago
I think the command you want to run the Jasmine server is rake jasmine
not rails
. This gem installs a couple of generators for use in rails, but otherwise should be run through rake
.
Hope this helps. Thanks for using Jasmine!
Hi Gregg,
I'll give it a try. But I was of the understanding (possibly wrong) that in Rails 5 there's no need to invoke rake
as all its functionality now works using the rails <...>
command.
It looks like jasmine is trying to restart the rails server. Then rails server complains it's already running and crashes.
It looks like this is due to the default Puma configuration that rails writes out. By enabling the tmp_restart
plugin, when Jasmine tries to start up another rack server which will detect Puma, it will cause the other server to try to restart, but then detect that another server is running and not start.
Because of this, I don't think there is anything that Jasmine can do to fix this. If you remove (or comment out) the line in your config/puma.rb
that enables the tmp_restart
plugin, you should no longer see this issue.
Hope this helps. Thanks for using Jasmine!
I worked around it by using apache passenger instead of puma.
I would like to run the rails application server and a Jasmine test runner side by side. However, when I start one, it kills the other. This is using Rails 5.0.0.1.
I'm probably missing some key bit of configuration, but there's nothing obvious in the README for this gem.
Reproduction instructions:
Then in another shell: