rails paperclip and passenger `is not recognized by the 'identify' command`

前端 未结 14 841
终归单人心
终归单人心 2020-11-28 06:37

When I upload a photo, my model fails validation, err well even without any validations I\'m returned this error:

/tmp/stream20100103-13830-ywmerx-0 is not r         


        
相关标签:
14条回答
  • 2020-11-28 07:19

    You will also get this error message if you try to upload a file that contains colons in it's name as of the latest version.

    0 讨论(0)
  • 2020-11-28 07:21

    This worked fromhttp://arglebargle.posterous.com/path-environment-variable-for-rails-using-pas

    Put something like this in the VirtualHost (or wherever passenger is set up):

    SetEnv PATH /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/mysql/bin
    
    0 讨论(0)
提交回复
热议问题