Can't find "rackup" command?
http://titusd.co.uk/2010/04/07/a-beginners-sinatra-tutorial
I was trying to run rackup config.ru
from the command line as instructed in the tutorial above in section 4. It ende开发者_JAVA技巧d up saying "No command 'rackup' found".
Any idea what happened?
A bit late to the party, however I came across this using Sinatra at a hack night and our fix was to use the true relative path in config.ru:
require './app'
Since you didn't mention the version of Rack you used, it seems like you were using the old version.
Just:
rackup
will do the thing.
Using rackup1.8 config.ru
instead of rackup config.ru
solved my problem. But I am not terribly sure what happened, though.
精彩评论