Worker brick

11 views
Skip to first unread message

Jean-Baptiste Bonnet

unread,
Sep 2, 2013, 5:49:10 PM9/2/13
to zena...@googlegroups.com
Hello Gaspard,

I am trying to activate the "Worker" brick.
I installed the "delayed_job" gem, version 2.0.8 which is the last
version that's compatible with rails 2.
I activated the brick in the bricks.yml file ("switch: ON") of my
application
I then migrated my app: "rake zena:migrate" in the application directory
but it does not actually add any table to the database.

Here is the output:

** zena 1.2.7 starting (c) Gaspard Bucher 2012
** Bricks: acls, activity, captcha, fs_skin, grid, math, passenger, pdf,
spreadsheet, tags, uv
=> Not executing bricks init code.
Loaded suite /usr/languages/ruby/1.8.7/bin/rake1.8
Started

Finished in 0.00021 seconds.

0 tests, 0 assertions, 0 failures, 0 errors


It seems that the worker brick is not detected as activated. Did I miss
something in the process?
I restarted the server and raked again with no effect.

By the way I earlier had the following error message while executing the
"rake zena:migrate" command:
Could not require
"/home/[user]/gems/gems/zena-1.2.7/vendor/plugins/selenium-on-rails/lib/selenium-on-rails.rb"
I found that the target file name was selenium_on_rails.rb instead of
selenium-on-rails.rb
I changed the "_" to "-" and it worked.

Thanks for your help!

Jean-Baptiste

Gaspard Bucher

unread,
Sep 3, 2013, 4:03:21 AM9/3/13
to zena
Hi Jean-Baptiste,

The selenium bug has been fixed.

Concerning delayed job, you should use 1.8.4, since the 2.x generation does not work (I do not remember why).

Then make sure the RAILS_ENV is correct between the bricks.yml config and your shell. You can test if the brick is activated by running

$ rake -T | grep worker




--
--
_______________________________________________
zena mailing list
ze...@zenadmin.org
http://zenadmin.org/en/community
--- You received this message because you are subscribed to the Google Groups "zena" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zena-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--

                                                               Gaspard

Jean-Baptiste Bonnet

unread,
Sep 3, 2013, 7:49:29 AM9/3/13
to zena...@googlegroups.com
Ok Gaspard, the problem was with the RAILS_ENV

I just ran:
rake zena:migrate RAILS_ENV=production

The migration took place and I have a new "jobs" menu in the admin section.
Now I'll have to figure out how this worker actually works!

Thanks for your help,

Jean-Baptiste

Reply all
Reply to author
Forward
0 new messages