0

I am having one file intello erp,ruby version is 1.8.3 and rails 2.3.8 When I said rails s why it is not starting server?it is showing given below.help me

exists  
          exists  app/controllers
          exists  app/helpers
          exists  app/models
          exists  app/views/layouts
          exists  config/environments
          exists  config/initializers
          exists  config/locales
          exists  db
          exists  doc
          exists  lib
          exists  lib/tasks
          exists  log
          exists  public/images
          exists  public/javascripts
          exists  public/stylesheets
          exists  script/performance
Substantial
  • 6,684
  • 2
  • 31
  • 40
Ashwini K
  • 95
  • 2
  • 7
  • 1
    you better find a tutorial how to install rvm, ruby 2.0 and rails 4 and do not waste time to start a rails 2 project – rmagnum2002 Jul 16 '13 at 07:13
  • but how can I run this file? – Ashwini K Jul 16 '13 at 07:16
  • 1
    as I remember it's `./script/server start` – rmagnum2002 Jul 16 '13 at 07:17
  • using ruby script/server command I started the server but again it is showing Sorry. Something Went Wrong. Error 500- Internal Server Error Go to home Previous page – Ashwini K Jul 16 '13 at 07:42
  • Is anybody can tell what i have to change in database.yml file how to resolve this problem? – Ashwini K Jul 16 '13 at 08:58
  • nobody can tell you anything without you posting the server logs and the needed files.. there is no magician here to guess where your problem is. – rmagnum2002 Jul 16 '13 at 09:11
  • In databas.yml you have to define mysql user, password and databse name. Better you go through this link http://guides.rubyonrails.org/v2.3.11/ and then try to create application – Sonal S. Jul 17 '13 at 11:27

5 Answers5

5

try this ruby script/server from your root directory this will start your server

shrikant1712
  • 4,336
  • 1
  • 24
  • 42
3

If You are in root folder of the project run:

ruby script/server
Pawel
  • 934
  • 6
  • 11
2

Get into the root directory:

cd ~/Directory

Then type the following in console to run the server script:

ruby script/server 

Should then be supplied the following information:

[2015-12-15 10:41:52] INFO  WEBrick 1.3.1
[2015-12-15 10:41:52] INFO  ruby 1.8.7 (2013-06-27) [i386-mingw32]
[2015-12-15 10:41:52] INFO  WEBrick::HTTPServer#start: pid=4436 port=3000

You should then be available to access your local site:http://localhost:3000/

FBaez51
  • 482
  • 1
  • 7
  • 12
1

Yes, use ruby script/server from root directory of project. This is because you are using Rails version 2.X.X. If you use Rails 3.X.X then you can run rails s or rails server to run Webrick Service to run your application. After doing this, use http://localhost:3000 from your browser. You will get your application.

Holger Just
  • 52,918
  • 14
  • 115
  • 123
Sonal S.
  • 1,444
  • 1
  • 15
  • 31
0

Then type the following in console to run the server script from inside your project:

 cd script 
 chmod u+x server

Then,

 exec script/server or ./script server