Can't find "rackup" command?

Terry Li picture Terry Li · Jun 2, 2011 · Viewed 11.9k times · Source

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 ended up saying "No command 'rackup' found".

Any idea what happened?

Answer

Matt Stevens picture Matt Stevens · Jan 8, 2013

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'