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

How to load environment #11

Closed
hiennguyenvan-agilityio opened this issue Aug 7, 2015 · 1 comment
Closed

How to load environment #11

hiennguyenvan-agilityio opened this issue Aug 7, 2015 · 1 comment

Comments

@hiennguyenvan-agilityio
Copy link

@nevinera How to load environment into fork to use ActiveRecord at here.
Ex:

IsoLatte.fork(
  stderr:   "tmp/suberr.txt",
  finish:   ->(success, rc) { puts "Finished. Success? #{success}" },
  success:  ->() { puts "Was successful" },
  kill:     ->() { puts "Received a SIGKILL" },
  fault:    ->() { puts "Received a SIGABRT, probably a segmentation fault" },
  exit:     ->(rc) { puts "subprocess exited explicitly with #{rc}" }
) do
  results = Product.search_by(categories, keywords, page).results
end
@hiennguyenvan-agilityio
Copy link
Author

Sorry my mistake, I forget binding data to it.

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

1 participant