Ruby on Rails Wednesday, August 11, 2010

arai wrote:
> As much fun as it is to type "rails s thin -p 1234", I'd rather just
> use "rails s", or even "merb". I've spent hours digging through
> google and various documentation projects trying to figure this out,
> how can I do this in rails3?

Add to ~/.profile (or similar):
-------------------------------
alias merb="rails s thin -p 1234"

Then do this to activate the alias:
-------------------------------
source ~/.profile

(or simply close the terminal window and open a new one)

While not a direct answer this would do precisely what you're asking.

I use this technique for a number of things like running ./script/server
by typing ss and ./script/console as sc for Rails 2.x.
--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment