# Deploy ruby on rails application by mongrel

**URL:** <https://www.ruby-forum.com/t/deploy-ruby-on-rails-application-by-mongrel/119228>\
**Category:** Mongrel\
**Created:** [November 5, 2007, 7:28am UTC](https://www.ruby-forum.com/t/deploy-ruby-on-rails-application-by-mongrel/119228 "2007-11-05T07:28:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SSSS\_SSSSS\_SSSSS\_SS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/85e7bf/32.png) [@SSSS\_SSSSS\_SSSSS\_SS](https://www.ruby-forum.com/u/SSSS_SSSSS_SSSSS_SS)\
**Post date:** [November 5, 2007, 7:28am UTC](https://www.ruby-forum.com/t/deploy-ruby-on-rails-application-by-mongrel/119228/1 "2007-11-05T07:28:29Z")

</div>

1.download ruby-one click for windows from www.ruby-lang.orgï¼Œ set up.  
2.run command:  
gem install rails --include-dependencies (success)  
3.set up mongrel:  
gem install win32-service(pick the most recent one)  
gem install mongrel (pick the win32 pre-built)  
gem install mongrel\_service

all of the above were successful.

then i creat an empty folder “d:\myapp”,run the command:  
mongrel\_rails service::install -N myapp -c d:\myapp -p 4000 -e  
production

the rusult:the path you specified isn’t a valid Rails application

so what’s the matter?

i am a student in Nanjing Agricultural University,I am learning ruby  
and ruby on rails,but there are few books and other materials for me.so  
can you help me?

---

<div class="post-metadata">

**Author:** ![SSSS\_SSSSS\_SSSSS\_SS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/85e7bf/32.png) [@SSSS\_SSSSS\_SSSSS\_SS](https://www.ruby-forum.com/u/SSSS_SSSSS_SSSSS_SS)\
**Post date:** [November 5, 2007, 7:39am UTC](https://www.ruby-forum.com/t/deploy-ruby-on-rails-application-by-mongrel/119228/2 "2007-11-05T07:39:01Z")

</div>

I think you might have missed out the step where you create a valid  
rails  
application.

After all the gem installs, you should be able to enter:

rails myapp

and that command will set up a valid rails directory.

You should possibly make sure you understand how the rails command works  
first,  
and use the ‘mongrel\_rails start’ and ‘mongrel\_rails stop’ commands  
while  
learning Rails.
