我正在嘗試設置我的Rails應用程序,使用asset_sync寶石將其資產上傳到Amazon的AWS S3,繼these instructions之後。我知道我已經配置了我的S3配置,因爲我的應用可以將圖像上傳到S3。我敢肯定,我已經得到了所有的設置正確:爲什麼`rake assets:precompile` throwing「getaddrinfo:Name or service not known」? (re:asset_sync)
FOG_DIRECTORY => mybucketname
FOG_PROVIDER => AWS
FOG_REGION => s3-us-west-2
然而,我不斷收到錯誤:
-bash> heroku run rake assets:precompile --remote staging
Running rake assets:precompile attached to terminal... up, run.1
AssetSync: using default configuration from built-in initializer
mkdir -p /app/public/assets
...
mkdir -p /app/public/assets
AssetSync: Syncing.
rake aborted!
getaddrinfo: Name or service not known # <-- error
本地編譯生成一個略有不同的錯誤:
-bash> bundle exec rake assets:precompile
AssetSync: using default configuration from built-in initializer
mkdir -p /Users/bart/Dev/MyApp/myapp/public/assets
...
mkdir -p /Users/bart/Dev/MyApp/myapp/public/assets
AssetSync: Syncing.
rake aborted!
getaddrinfo: nodename nor servname provided, or not known # <-- error
很好的答案。仍然不明白爲什麼亞馬遜這樣一家大公司的用戶界面非常差 – 2013-11-14 08:54:41