Forum: Ruby on Rails Unable to start the web application from localhost:3000(ruby on rails)

Ef1b30794ac9d3125669df468262616f?d=identicon&s=25 vipin v. (vipin_v)
on 2012-10-30 11:24
I had created a demo web application by executing rails tickets and then
i executed rails script/server to run it on localhost.

Initially i was able to execute the application in the browser by typing
localhost:3000 in the address bar, but then I deleted the folder tickets
from my hard disk.

Now again i created the same folder but when i try to run it using the
same command rails script/server it says that

File exists - script/server

I tried deleting the script/server file but i still couldn't run the
localhost:3000 in the browser

What is the solution to this
1a4ff0766a653c62e0dab34bacda9873?d=identicon&s=25 Norbert Melzer (Guest)
on 2012-10-30 11:41
(Received via mailing list)
Your old one was rails 2.x I guess, but your new one is 3 or above. The
new
command for starting the server is 'rails s'
Am 30.10.2012 11:24 schrieb "vipin v." <lists@ruby-forum.com>:
Ef1b30794ac9d3125669df468262616f?d=identicon&s=25 vipin v. (vipin_v)
on 2012-10-30 11:44
i have rails version 2.3.14 with me
Ef1b30794ac9d3125669df468262616f?d=identicon&s=25 vipin v. (vipin_v)
on 2012-10-30 11:46
with rails s it gave the following output:-
http://paste.ubuntu.com/1317610/

but still i was unable to localhost:3000
Ef1b30794ac9d3125669df468262616f?d=identicon&s=25 vipin v. (vipin_v)
on 2012-10-30 11:57
can someone please help me asap.. please !
19fad8b2f5f9948322c3fe0441265298?d=identicon&s=25 Jim ruther Nill (jimboker)
on 2012-10-30 12:04
(Received via mailing list)
On Tue, Oct 30, 2012 at 6:44 PM, vipin v. <lists@ruby-forum.com> wrote:

> i have rails version 2.3.14 with me
>

you should've not deleted the script/server file.  you're using rails 2
so
the proper way to start
the server is ruby script/server not rails script/server.  the shorcut
to
this is just script/server.


> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>


--
Ef1b30794ac9d3125669df468262616f?d=identicon&s=25 vipin v. (vipin_v)
on 2012-10-30 12:11
but now i have done it, so what is the solution??
will i never be able to run the app in server again??
6dbddfda34303f8d83620f7293612671?d=identicon&s=25 Tommaso Visconti (Guest)
on 2012-10-30 12:27
(Received via mailing list)
Il 30/10/12 11:46, vipin v. ha scritto:
> with rails s it gave the following output:-
> http://paste.ubuntu.com/1317610/
>
> but still i was unable to localhost:3000
>

I think you just created a new app inside the "s" folder.

Please paste the output of "ruby script/server" command
6dbddfda34303f8d83620f7293612671?d=identicon&s=25 Tommaso Visconti (Guest)
on 2012-10-30 12:27
(Received via mailing list)
vipin v. ha scritto:
> File exists - script/server
>
> I tried deleting the script/server file but i still couldn't run the
> localhost:3000 in the browser
>
> What is the solution to this

Hi V.,
try reading this guide, it is very useful to begin with rails:
http://guides.rubyonrails.org/getting_started.html

Bye,
Tommaso
19fad8b2f5f9948322c3fe0441265298?d=identicon&s=25 Jim ruther Nill (jimboker)
on 2012-10-30 12:30
(Received via mailing list)
On Tue, Oct 30, 2012 at 7:11 PM, vipin v. <lists@ruby-forum.com> wrote:

> but now i have done it, so what is the solution??
> will i never be able to run the app in server again??


create a new rails app and copy script/server?


>
>
>


--
Ef1b30794ac9d3125669df468262616f?d=identicon&s=25 vipin v. (vipin_v)
on 2012-10-30 12:51
> Please paste the output of "ruby script/server" command

output is

vverma@l-vverma:~/myExp/tickets$ rails script/server
      create
File exists - script/server
5f94b9b346c2aa648a80bc259978e5bc?d=identicon&s=25 Colin Law (Guest)
on 2012-10-30 12:56
(Received via mailing list)
On 30 October 2012 11:51, vipin v. <lists@ruby-forum.com> wrote:
>> Please paste the output of "ruby script/server" command
>
> output is
>
> vverma@l-vverma:~/myExp/tickets$ rails script/server
>       create
> File exists - script/server

That looks like the output from "rails script/server" not "ruby
script/server"

Colin
Ef1b30794ac9d3125669df468262616f?d=identicon&s=25 vipin v. (vipin_v)
on 2012-10-31 12:17
>
> That looks like the output from "rails script/server" not "ruby
> script/server"

Thanks for your observation Colin
All is Well now :))))
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.