【发布时间】:2020-05-10 18:16:59
【问题描述】:
我在尝试访问我的域时遇到问题。我有我的应用程序(rails 应用程序)托管在数字海洋水滴中我已经在站点可用和站点启用中配置了 nginx 文件,但是每次我想连接到我的主域时,它都会获得一个不定式加载状态并且它永远不会显示。进入我的可用站点,我得到了这个配置:
server {
server_name devprimate.com www.devprimate.com;
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
连接启动rails服务器i用户rails s(而不是rails s + ip地址)
【问题讨论】:
标签: ruby-on-rails server digital-ocean