11155
(-- --)
October 30, 2012, 10:24am
1
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
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
vipin v. ha scritto:
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
Hi V.,
try reading this guide, it is very useful to begin with rails: Getting Started with Rails — Ruby on Rails Guides
Bye,
Tommaso
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’
11155
(-- --)
October 30, 2012, 10:44am
4
i have rails version 2.3.14 with me
11155
(-- --)
October 30, 2012, 10:46am
5
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
11155
(-- --)
October 30, 2012, 10:57am
7
can someone please help me asap.. please !
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.
11155
(-- --)
October 30, 2012, 11:11am
9
but now i have done it, so what is the solution??
will i never be able to run the app in server again??
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?
11155
(-- --)
October 30, 2012, 11:51am
11
Please paste the output of "ruby script/server" command
output is
vverma@l-vverma:~/myExp/tickets$ rails script/server
create
File exists - script/server
Colin_Law1
(Colin Law)
October 30, 2012, 11:55am
12
That looks like the output from "rails script/server" not "ruby script/server"
Colin
11155
(-- --)
October 31, 2012, 11:17am
13
That looks like the output from "rails script/server" not "ruby
script/server"
Thanks for your observation Colin
All is Well now :))))