Reputation: 468
I am using windows 10. I install Rails and other supporting software via railsinstaller.org website.
Now I go on CMD and writing command rails server
but Rails server not starting work. when I open link in firefox http://localhost:3000
Following is snapshot of output when I write rails s
in cmd. I have Rails 4.2.5.1 in my PC and using Windows 10
Upvotes: 1
Views: 2703
Reputation: 1
simply add gem "tzinfo-data" to your Gemfile and run bundle install and you are good to goenter image description here
Upvotes: 0
Reputation: 2072
The problem my be caused due to following (Unable to Install gems)
if you are using latest version of ruby installer to install ruby then there are problem for installing nokogiri and ulifier or other gem which needs to compailing in your pc. so you needs to install devkit first. For this please do following:
The download is a self-extracting archive. When you execute the file, it’ll ask you for a destination for the files. Enter a path that has no spaces in it. We recommend something simple, like C:\RubyDevKit\
. Click Extract and wait until the process is finished.
Download from here
Next, you need to initialize the DevKit and bind it to your Ruby installation. Open your favorite command line tool and navigate to the folder you extracted the DevKit into.
cd C:\RubyDevKit
Auto-detect Ruby installations and add them to a configuration file for the next step.
ruby dk.rb init
Install the DevKit, binding it to your Ruby installation.
ruby dk.rb install
Now run bundle install
If still problem persist downgrade your ruby or install linux distro.
Upvotes: 1
Reputation: 3333
Check if the bin/rails file is in place. If not, generate a new sample app, then copy the bin folder to it.
Upvotes: 0
Reputation: 1549
You need to change your directory to the app root folder.For Example if your app name is 'myapp', then type cd myapp
and run rails server with rails s
.
Upvotes: 1