I've installed Ruby onto my Windows PC and have a home.erb file with a route that is described in my app.rb file.
My Gemfile currently looks like:
#Gemfile
source :rubygems
gem 'sinatra'
gem 'sass'
gem 'rake'
gem 'shotgun'
gem 'pry'
gem 'require_all'
group :test do
gem 'rspec'
gem 'capybara'
gem 'rack-test'
end
I've been running the "bundle install" command on the 'Start Command Prompt With Ruby'. I've successfully installed the 'sinatra', 'shotgun', 'rake' (etc.) gems onto the Ruby application.
However, every time I run "shotgun" to see my website in progress, I get the following error in the terminal.
C:/Ruby24/lib/ruby/gems/2.4.0/gems/shotgun-0.9.2/bin/shotgun:102:in ``': No such file or directory - uname (Errno::ENOENT)
from C:/Ruby24/lib/ruby/gems/2.4.0/gems/shotgun-0.9.2/bin/shotgun:102:in `block in <top (required)>'
from C:/Ruby24/lib/ruby/gems/2.4.0/gems/shotgun-0.9.2/bin/shotgun:101:in `each'
from C:/Ruby24/lib/ruby/gems/2.4.0/gems/shotgun-0.9.2/bin/shotgun:101:in `find'
from C:/Ruby24/lib/ruby/gems/2.4.0/gems/shotgun-0.9.2/bin/shotgun:101:in `<top (required)>'
from C:/Ruby24/bin/shotgun:23:in `load'
from C:/Ruby24/bin/shotgun:23:in `<main>'
My Gemfile is under Ruby24/lib/personalsite.
Any help would be appreciated as I am just starting off with website development! Thanks!!
Shotgun does not work on Windows. From the Shotgun docs:
If you're running Windows 10 and feeling adventurous, I would suggest trying out the Windows Subsystem for Linux. This way you can run a POSIX compliant subsystem on Windows, and use tools such as Shotgun without problems.