Rails. How to deploy on a Windows machine without command prompt/command window

70 views Asked by At

I'm studying Rails, i'm a student and I want to deploy some experiment on Windows as a service.

For example:

I need to start my PC with Windows 8.1 and i want to be able to open browser, write localhost:3000/something and start my Rails's app.

Is it possible?

I searched a lot on the web but I found only small tutorial with solutions that I think are not too much strong.

you can tell me a serious approach to the problem and a serious solution?

2

There are 2 answers

2
FeifanZ On

Looks like there's an answer in another SO thread: https://stackoverflow.com/a/4458804/472768

You want to create a batch file with the commands

cd path\to\your\app
rails s

And add it to your Startup Items folder in the Start Menu

1
michaelward82 On

You can try one of the easy install options for ruby and rails, all of which come with a web server.

http://railsinstaller.org/en is one good example.