This forum is no longer active. Please post your questions to our new community site

commad window for ruby open just the first time !!!

Subscribe to commad window for ruby open just the first time !!! 4 post(s), 3 voice(s)

 
Avatar ahmad.ramadan 12 post(s)

after installing rubystack with vista ro xp has WAMP installed , the ruby command window open after closing the report.txt file …...
and start the service ….. and every thing is work …. then i press ctrl+c to stop it ….....................

i tried many times to start the stack from the batch or from the start menu …... but the command window just open and closed instantly ….......!!!!

what can i do …..?

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi, To start the Apache and MySQL services you can use the RubyStack shortcut. Which is the exact command that you are typing? If you are trying to start the ruby sample application you should go to Rubyconsole and execute the following commands:

> cd rubystack/script
ruby server

And the sample application should be running at http:://127.0.0.1:3000.

Cheers

 
Avatar ahmad.ramadan 12 post(s)

i got this error :(

http://pixelshack.com/img/656397ruby.jpg

 
Avatar carlos Administrator 144 post(s)

Hi Ahmad,

The problem if you start the server from inside ‘script’ path is that it will try to store logs in ‘script/log’ directory, which doesn’t exists.
You can avoid that problem executing the scripts from the main directory of the Rails project.

Instead of what Beltran proposed you should do:


> cd rubystack
> ruby script\server