Permalink
Browse files

Run default webserver with correct invocation.

  • Loading branch information...
joodie committed May 16, 2013
1 parent e8caeed commit 20206f4455318180d11fea539a234d36da5c0d93
Showing with 3 additions and 11 deletions.
  1. +3 −11 rails-ws.el
View
@@ -115,17 +115,9 @@ using `rails-default-environment'."
(format "-p %s -e %s start"
port
env)))
- ((file-exists-p (rails-core:file "script/rails"))
- (list rails-ruby-command
- (format "script/rails server -p %s -e %s"
- port
- env)))
- (t
- (list rails-ruby-command
- (format "script/server %s -p %s -e %s"
- server-type
- port
- env)))))
+ (t (let ((cmdlist (append (rails-script:find-rails-command "server")
+ (list "-p" port "-e" env))))
+ (list (car cmdlist) (string-join " " (cdr cmdlist)))))))
(defun rails-ws:stop ()
"Stop the WebServer process."

0 comments on commit 20206f4

Please sign in to comment.