Search results

  1. T

    ENV['RAILS_ENV'] returns nil when called inside Rails 2.3.4 initializer

    Hey Grzegorz, thanks for the links - I will give these a go next time I deploy to this site (coming weeks). Thanks! -- Thibaut
  2. T

    ENV['RAILS_ENV'] returns nil when called inside Rails 2.3.4 initializer

    Thank you - I will try that.
  3. T

    ENV['RAILS_ENV'] returns nil when called inside Rails 2.3.4 initializer

    I've been reading a lot but I'm not sure what's the right way to do things. I have a virtual host, but it doesn't have anything in the "external app" tab. Should I add a lsapi external app ? I'm a bit confused about dispatch.lsapi vs RailsRunner etc - what is the recommended way to run a...
  4. T

    Do you plan to issue a release working with Rack 1.0.1 ?

    Hello, thanks for your reply. Yes that's what I did in the end - I unpacked rack 1.0.0. I was just concerned about knowing if you were planning to keep supporting Rails (ie 2.3.5 + rack 1.0.1) in the future! -- Thibaut
  5. T

    ENV['RAILS_ENV'] returns nil when called inside Rails 2.3.4 initializer

    Hello, if I use an initializer under config/initializer/myfile.rb, it seems that when the code is called, ENV['RAILS_ENV'] is empty when I use LiteSpeed, whereas it has a value of development or production if I use ruby script/server. Is it a known issue ? My work-around has been to...
  6. T

    Do you plan to issue a release working with Rack 1.0.1 ?

    Hello, after rereading this thread, I believe starting from Rails 2.3.5 (which apparently requires Rack 1.0.1), it won't be possible to run Rails on LiteSpeed. Am I right ? If so, do you have plans to publish a new release of either ruby-lsapi or the server itself that would make this...
  7. T

    production.log not written - any hint ?

    Getting back to this server after a while, I still met this issue. I found out though (thanks to this article) this: "make sure you check lsws/logs/stderr.log, where the more obscure errors are reported." And indeed, there is an error in there! Is there some way to redirect STDERR to...
  8. T

    production.log not written - any hint ?

    My app runs perfectly fine, except I cannot get any input in log/production.log. My app (and dispatch.lsapi) are owned by a given user:group, and the log folder (+ production.log) are writable to this user. If that matters, the log folder is a symlink, as I'm using Capistrano. Any idea...
  9. T

    Stuck with SSL + EasyRailsWithSuEXEC - any hint ?

    Back in case it's useful to someone else: instancianting the template creates a real virtual host. You can then manage to add ssl support on this, it works perfectly. cheers!
  10. T

    Stuck with SSL + EasyRailsWithSuEXEC - any hint ?

    Maybe I should instanciate the member virtual hosts and see if I can configure ssl from there...
  11. T

    Stuck with SSL + EasyRailsWithSuEXEC - any hint ?

    Hi, I've deployed a new application using EasyRailsWithSuEXEC template. The application is properly listed in the member virtual hosts. I've also created a secure listener (and also secured the admin with the same certificate). I'm following the guidelines but when I do so, the Virtual...
  12. T

    Rack 1.0.1 don't works god with litespeed

    hi, thanks for the tips! Turns out things seem to work with rack 1.0.0 instead of 1.0.1. Maybe there is something to investigate for the later releases of Litespeed though - in case the change brought by 1.0.1 becomes the rule. If it helps, here are the release notes of 1.0.1. Thanks!
  13. T

    Rack 1.0.1 don't works god with litespeed

    Same issue here ? Hi! I'm getting what seems to be the same error here: /var/sites/myapp/releases/20091104111639/vendor/rails/activesupport/lib/active_support/dependencies.rb:105:in `const_missing' : uninitialized constant Rack::Handler::LSWS::RewindableInput ( NameError )...
  14. T

    Multiple Ruby versions at the same time ?

    Hello Mistwang, thanks a lot for pointing me in the right direction! cheers Thibaut
  15. T

    Multiple Ruby versions at the same time ?

    Hello, I have two old Rails applications that rely on ruby 1.8.4 (they should be upgraded later) on one LiteSpeed instance - cannot be upgraded right now. I need to deploy a brand new Rails 2.2.2 on the same server, most likely with Ruby 1.8.6. Is there a way I can specify a different...
  16. T

    Solaris SMF?

    I'll add this question: are there issues if we install LSWS on port 81 first to test things out (and keep Apache serving current traffic during the test) then switch LSWS to port 80 and shutdown Apache once everything is properly running ? I'm concerned about meeting permissions issues when...
  17. T

    Solaris SMF?

    Thanks for sharing all this ! I have a security related question: under Solaris, what would be the most secure way to install litespeed ? Is it fine to log as root to install, then to have a dedicated user (like: litesped/webservd) to run the server ? When installing a Rails application...
  18. T

    LSWS fails to start after installation (no error logs)

    Hi George, thanks for your reply. I'll see if I can upgrade my Solaris container first. best, Thibaut
  19. T

    LSWS fails to start after installation (no error logs)

    Thanks ! Please note there is nothing urgent here, and don't hesitate to drop a line here if you need it and think I can help in any way (tests on my server, etc.) I'm going to read more about Solaris before going root as well. cheers Thibaut
  20. T

    LSWS fails to start after installation (no error logs)

    Done. I still get a failure. The new truss output is slightly different (here's the affected part): readlink("/home", 0x080444D1, 4094) Err#22 EINVAL getcwd("/home/mydomain.com/lsws/bin", 512) = 0 xstat(2, "/home/mydomain.com/lsws/", 0x08045860) = 0...
Top