toto icon indicating copy to clipboard operation
toto copied to clipboard

a issue using thin with toto

Open luckypoem opened this issue 11 years ago • 4 comments

hi.pls see below.how to fix the issue?

as3:~# cd toto-blog as3:~/toto-blog# ls articles config.ru public Rakefile README templates as3:~/toto-blog# thin start -R config.ru config.ru:2:in require': no such file to load -- toto (LoadError) from config.ru:2 from /usr/lib/ruby/1.8/rack/builder.rb:46:ininstance_eval' from /usr/lib/ruby/1.8/rack/builder.rb:46:in initialize' from config.ru:1:innew' from config.ru:1

luckypoem avatar Oct 17 '13 03:10 luckypoem

Have you installed toto using gem? sudo gem install toto

kyuucr avatar Nov 29 '13 10:11 kyuucr

hi. i used "thin" unsuccessfully,but i use "unicorn" successfully.

gem install unicorn

unicorn --port 23456

luckypoem avatar Nov 30 '13 08:11 luckypoem

Hi, I have the same issue with toto on Debian Wheezy.

What I did was:

  1. sudo aptitude install rubygems (1.8.24-1)
  2. sudo aptitude install thin (1.3.1-3)
  3. sudo gem install toto (0.4.9)
  4. cloned dorothy (master 6b9b23f from May 14 2010), cd to the folder
  5. thin start -R config.ru from the dorothy root
aloism@azzgoat:~/relief(master *)$ thin start -R config.ru 
config.ru:2:in `require': no such file to load -- toto (LoadError)
        from config.ru:2
        from /usr/lib/ruby/vendor_ruby/rack/builder.rb:51:in `instance_eval'
        from /usr/lib/ruby/vendor_ruby/rack/builder.rb:51:in `initialize'
        from config.ru:1:in `new'
        from config.ru:1
aloism@azzgoat:~/relief(master *)$ 

AloisMahdal avatar Feb 23 '14 00:02 AloisMahdal

I had the same issue on Mavericks on a Mac, had to use Puma instead, there was not way to launch the app with Thin because it kept looking for the Toto gem in the System's defalt ruby path where it was't installed. My config.ru file looks like this:

#!/usr/bin/env rackup 
#\ -p 8000 # run on port 8000
# encoding: utf-8

require 'toto'
...

I also changed the project to use Bundler with a Gemfile.

kakubei avatar Apr 05 '14 10:04 kakubei