Wiki Forum Sign up! Explore Home

Not signed in (Sign In)

LiveSearch

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

Vanilla 1.1.2 is a product of Lussumo. More Information: Documentation, Community Support.

  1.  permalink
    Hi all,

    Ferret Server dont Run, I using this command:
    /var/www/cit/script/runner "load '/var/www/cit/vendor/plugins/acts_as_ferret/lib/ferret_server.rb'" &

    And the result is:
    /var/www/cit/script/../config/../config/environment.rb:53:Warning: require_gem is obsolete. Use gem instead.
    /var/www/cit/vendor/plugins/acts_as_ferret/lib/ferret_server.rb:15: warning: already initialized constant DEFAULTS

    And the server dont run .. like ps aux to see


    Other error ... On chat I send mensage, but no show in the chat.
    Only with reload page. (Problem with Push Server?)

    Regards,
    Renan Gonçalves
    • CommentAuthoradmin
    • CommentTimeMay 8th 2007
     permalink
    RAILS_ENV=production ./script/runner "load './lib/daemons/ferret_server' "

    is what I run to start the ferret server (which you only need if you're using the production environment) or expect lots of concurrent accesses.

    You might also have to make the models use the remote ferret server, as I haven't committed those yet - I will do that when I'm positive it works in both development and production environments.


    Index: app/models/work_log.rb
    ===================================================================
    --- app/models/work_log.rb (revision 942)
    +++ app/models/work_log.rb (working copy)
    @@ -1,6 +1,6 @@
    class WorkLog < ActiveRecord::Base

    - acts_as_ferret :fields => ['body', 'company_id', 'project_id']
    + acts_as_ferret({ :fields => ['body', 'company_id', 'project_id'], :remote => true})

    belongs_to :user
    belongs_to :company
    Index: app/models/task.rb
    ===================================================================
    --- app/models/task.rb (revision 942)
    +++ app/models/task.rb (working copy)
    @@ -2,13 +2,13 @@

    include Misc

    - acts_as_ferret :fields => { 'company_id' => {},
    + acts_as_ferret ({:fields => { 'company_id' => {},
    'project_id' => {},
    'full_name' => { :boost => 1.5 },
    'name' => { :boost => 2.0 },
    'issue_name' => { :boost => 0.8 },
    'description' => { :boost => 1.7}
    - }
    + }, :remote => true })

    belongs_to :company
    belongs_to :project
    @@ -77,7 +77,11 @@
    end


    Chat won't be instantaneous unless you get the push server running, no. Also, without it, people won't see edited/new tasks refreshed on their pages until they reload the page.
  2.  permalink
    If I change this files I got an error.

    The file config/ferret_server.yml dont exists
    Fatal Error on Rails

    The push server running ...
    root 10427 0.6 1.5 11020 8208 pts/1 S 13:52 0:00 ruby /var/www/cit/script/push_server
    root 10428 2.9 4.3 25280 22300 pts/1 S 13:52 0:01 ruby /var/www/cit/script/runner load '/var/www/cit/lib/daemons/ferret_server.rb'
    root 10429 9.8 7.6 58588 39556 pts/1 Sl 13:52 0:04 ruby /var/www/cit/script/server

    When I Click on task time to start, it starts without refresh. But the chat dont work withou refresh.


    Ty,
  3.  permalink
    I'm looking in FireBug and see the Ajax Request.
    On case of chat, it sent a Request, but nothing is returned to this.

    You can add the conversation on chat div when receive the return.
    • CommentAuthoradmin
    • CommentTimeMay 8th 2007 edited
     permalink
    ferret_server.yml:
    production:
    host: localhost
    port: 9010
    pid_file: log/ferret.pid
    development:
    host: localhost
    port: 9010
    pid_file: log/ferret.pid
    test:
    host: localhost
    port: 9009
    pid_file: log/ferret.pid
    • CommentAuthoradmin
    • CommentTimeMay 8th 2007
     permalink
    Make sure your juggernaut_config.yml is correct, have a look at the -example version. Also, make sure you install/enable flash in your browser, as a hidden flash applet is used for the push communication.