4

I have the following case:

I want to be able to run an independent Ruby script as a daemon. I would like to be able to execute this script in the context/environment of my Rails project (so that the script can have access to the back-end/my Rails models, for example).

Is there a straightforward way to accomplish this?

Thanks!

1 Answer 1

4

Use rails runner.

You could also create a rake task.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for the response, forgot to mark answer as accepted... rails runner is working great for me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.