开发者

Can't find "rackup" command?

开发者 https://www.devze.com 2023-03-09 22:21 出处:网络
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 say

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消