Merge pull request #3141 from otavioschwanck/change-server-command

fix rails server lag
This commit is contained in:
Henrik Lissner 2020-05-18 03:03:35 -04:00 committed by GitHub
commit 21e8277aea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View file

@ -7,6 +7,7 @@
- [[#description][Description]] - [[#description][Description]]
- [[#module-flags][Module Flags]] - [[#module-flags][Module Flags]]
- [[#packages][Packages]] - [[#packages][Packages]]
- [[#hacks][Hacks]]
- [[#prerequisites][Prerequisites]] - [[#prerequisites][Prerequisites]]
- [[#ubuntu][Ubuntu]] - [[#ubuntu][Ubuntu]]
- [[#macos][MacOS]] - [[#macos][MacOS]]
@ -47,6 +48,12 @@ This module add Ruby and optional Ruby on Rails support to Emacs.
+ [[https://github.com/eschulte/jump.el/tree/e4f1372cf22e811faca52fc86bdd5d817498a4d8][inflections]] + [[https://github.com/eschulte/jump.el/tree/e4f1372cf22e811faca52fc86bdd5d817498a4d8][inflections]]
+ [[https://github.com/plexus/chruby.el][chruby]] (=+chruby=) + [[https://github.com/plexus/chruby.el][chruby]] (=+chruby=)
** Hacks
+ =projectile-rails-custom-server-command= were changed to suppress extraneous output logged
to console. This was done to prevent a memory leak where the underlying
process would continue logging to an Emacs buffer, which would grow forever. You can change to default behaviour by
setting this variable to =nil=.
* Prerequisites * Prerequisites
Many of this modules plugins require ruby with some version manager (RVM or Many of this modules plugins require ruby with some version manager (RVM or
Rbenv) and the rubocop gem. Rbenv) and the rubocop gem.
@ -88,4 +95,5 @@ The rspec-mode prefix is =SPC m t=. Here is some examples:
| command | key / ex command | description | | command | key / ex command | description |
|-----------------------+------------------+-----------------------------------| |-----------------------+------------------+-----------------------------------|
| ~rspec-verify~ | =SPC m t v= | Runs rspec on current file | | ~rspec-verify~ | =SPC m t v= | Runs rspec on current file |
| ~rspec-verify-method~ | =SPC m t f= | Runs rspec for the item on cursor | | ~rspec-verify-method~ | =SPC m t s= | Runs rspec for the item on cursor |

View file

@ -183,6 +183,7 @@
:hook (projectile-rails-mode . auto-insert-mode) :hook (projectile-rails-mode . auto-insert-mode)
:init :init
(setq auto-insert-query nil) (setq auto-insert-query nil)
(setq projectile-rails-custom-server-command "bundle exec spring rails server --no-log-to-stdout")
(setq inf-ruby-console-environment "development") (setq inf-ruby-console-environment "development")
(when (featurep! :lang web) (when (featurep! :lang web)
(add-hook 'web-mode-hook #'projectile-rails-mode)) (add-hook 'web-mode-hook #'projectile-rails-mode))