通过 git 将图像上传到 heroku 时,图像从 Web 服务器发送时已损坏。我一直试图通过去g rm --cached images/contact-me.png
然后再去修复它g add images/contact-me.png
,然后推动。
还;
xyz@co-data:~/labs/exposeit-site$ sha1sum images/contact-me.png
2d319cd64e94afe7cdd169347653670a1dd82581 images/contact-me.png
xyz@co-data:~/labs/exposeit-site$ wget http://exposeit.herokuapp.com/images/contact-me.png
--2012-08-16 16:50:35-- http://exposeit.herokuapp.com/images/contact-me.png
Resolving exposeit.herokuapp.com (exposeit.herokuapp.com)... 50.19.121.246, 174.129.192.155, 184.73.155.93, ...
Connecting to exposeit.herokuapp.com (exposeit.herokuapp.com)|50.19.121.246|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1230115 (1.2M) [image/png]
Saving to: `contact-me.png'
100%[=================================================================================>] 1,230,115 963K/s in 1.2s
2012-08-16 16:50:36 (963 KB/s) - `contact-me.png' saved [1230115/1230115]
xyz@co-data:~/labs/exposeit-site$ sha1sum contact-me.png
74d97745d35bb67e5517611b683ed461bd0c1686 contact-me.png
和
xyz@co-data:~/labs/exposeit-site$ g ls-files | grep contact-me
images/contact-me.png
这是Heroku的问题吗?
更新:
档案:
web: bundle exec thin start -R config.ru -e $RACK_ENV -p $PORT