F12 发现头像路径是localhost
<img class="media-object avatar-96" src="http://localhost/system/letter_avatars/2/A/226_95_81/192.png">
RAILS_ENV=production
# RAILS_LOG_TO_STDOUT=true
# Nginx
# NGINX_WORKER_CONNECTIONS=65535
# Database
DATABASE_URL=postgres://postgres@postgresql:5432/homeland
# DATABASE_POOL=64
REDIS_URL=redis://redis:6379/1
ELASTICSEARCH_HOST=elasticsearch:9200
MEMCACHED_HOST=memcached:11211
# App Config
app_name=Homeland
https=false
domain=xxxxx
# cert_domain=
# modules=all
# profile_fields=all
admin_emails=xxxxx
asset_host=
# [uploader]
upload_provider=file
# upload_host
upload_host=
$ /home/app/homeland/config/nginx
$ vi nginx.conf,erb
在nginx.conf里追加client_body_temp_path属性。
client_body_temp_path /var/tmp/nginx;