Rackup command not working on windows 7

857 Views Asked by At

I am trying to build a online chat using private_pub and thin. I have installed the gem and trying to boot thin client using below command.

rackup private_pub.ru -s thin -E production

and I am getting below error:

The system cannot find the path specified.

Even rackup --help shows the same error. Anything to add in environment variables or config.ru file. Kindly help!

My platform is Windows 7 32-bit.

3

There are 3 best solutions below

0
Uzbekjon On

Windows can't find rackup command. Add it to your PATH environment variable and it should resolve the problem.

0
morapost On

Thanks Uzbekjon!! I resolved the issue by modifying the path in C:\RailsInstaller\Ruby2.2.0\bin rackup.bat file. The path was wrongly mentioned in the file.Once I updated the correct location of rackup path, the issue is resolved.

0
Jefhunt On

You should to do this

  1. gem install rack
  2. then run rackup