amanpreet singh
amanpreet singh

Reputation: 21

why rails server is not working on windows 10

I have created the new rails project and trying to run it without doing any changes. I am using the power shell in windows 10. When I am running the rails s command its not starting the server. Please see attached image. I have highlighted the installed ruby version.

enter image description here

Upvotes: 1

Views: 326

Answers (3)

Francesco Tagliani
Francesco Tagliani

Reputation: 109

I've got similar error when I am not in rails project directory. Seems you are out of directory. Please run those full commands in powershell

cd c:/
rails new testapp
cd testapp
rails s

Upvotes: 0

Francesco Tagliani
Francesco Tagliani

Reputation: 109

I think this command will work or you are missing something which is required to run rails server

bin/rails server

Upvotes: 0

James Burgess
James Burgess

Reputation: 497

The error is there in the output, you do not have a rails app to start a server for, you can create a new app with:

rails new <name-for-your-app>

Follow along this tutorial to help you get started with rails.

Upvotes: 1

Related Questions