D
D
des1roer2017-02-14 09:21:21
Redmine
des1roer, 2017-02-14 09:21:21

Run php script from ruby ​​(redmine)?

when checking email I want to execute a function

def test_email(user)
    set_language_if_valid(user.language)
    @url = url_for(:controller => 'welcome')
    mail :to => user.mail,
      :subject => 'Redmine test'
    system("php run.php")
  end

nothing happens, the email goes away. nothing in the logs

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Gladyshev, 2017-03-13
@fairoj

Try to specify the full path to the script

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question