Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a issue using thin with toto #134

Open
luckypoem opened this issue Oct 17, 2013 · 4 comments
Open

a issue using thin with toto #134

luckypoem opened this issue Oct 17, 2013 · 4 comments

Comments

@luckypoem
Copy link

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

@kyuucr
Copy link

kyuucr commented Nov 29, 2013

Have you installed toto using gem? sudo gem install toto

@luckypoem
Copy link
Author

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

gem install unicorn

unicorn --port 23456

@AloisMahdal
Copy link

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 *)$ 

@kakubei
Copy link

kakubei commented Apr 5, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants