{"action":"closed","issue":{"url":"https://api.github.com/repos/catarse/catarse/issues/1846","labels_url":"https://api.github.com/repos/catarse/catarse/issues/1846/labels{/name}","comments_url":"https://api.github.com/repos/catarse/catarse/issues/1846/comments","events_url":"https://api.github.com/repos/catarse/catarse/issues/1846/events","html_url":"https://github.com/catarse/catarse/issues/1846","id":113222250,"number":1846,"title":"Running in production with Nginx : \"/pt/login\" -> 404","user":{"login":"rdupz","id":4375638,"avatar_url":"https://avatars.githubusercontent.com/u/4375638?v=3","gravatar_id":"","url":"https://api.github.com/users/rdupz","html_url":"https://github.com/rdupz","followers_url":"https://api.github.com/users/rdupz/followers","following_url":"https://api.github.com/users/rdupz/following{/other_user}","gists_url":"https://api.github.com/users/rdupz/gists{/gist_id}","starred_url":"https://api.github.com/users/rdupz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdupz/subscriptions","organizations_url":"https://api.github.com/users/rdupz/orgs","repos_url":"https://api.github.com/users/rdupz/repos","events_url":"https://api.github.com/users/rdupz/events{/privacy}","received_events_url":"https://api.github.com/users/rdupz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-25T12:06:14Z","updated_at":"2015-10-25T12:43:25Z","closed_at":"2015-10-25T12:43:25Z","body":"Hello,\r\n\r\nRunning catarse in production mode, I get this trying to login:\r\n```\r\nStarted GET \"/pt/login\" for 127.0.0.1 at 2015-10-25 12:41:17 +0100\r\nProcessing by Devise::SessionsController#new as HTML\r\n  Parameters: {\"locale\"=>\"pt\"}\r\n  Rendered catarse_bootstrap/devise/shared/_header.html.slim (1.2ms)\r\n  Rendered catarse_bootstrap/devise/sessions/new.html.slim within layouts/catarse_bootstrap (7.3ms)\r\n  Rendered catarse_bootstrap/devise/shared/_header.html.slim (0.6ms)\r\n  Rendered catarse_bootstrap/errors/not_found.html.slim within layouts/catarse_bootstrap (1.1ms)\r\n  Rendered catarse_bootstrap/layouts/_vwo.html.slim (0.4ms)\r\n  Rendered catarse_bootstrap/layouts/_mixpanel.html.slim (0.2ms)\r\n  Rendered catarse_bootstrap/layouts/_new_zendesk.html.slim (0.3ms)\r\n  Rendered catarse_bootstrap/layouts/_zendesk_widget.html.slim (0.1ms)\r\n  Rendered catarse_bootstrap/layouts/_facebook_sdk.html.slim (0.2ms)\r\n  Rendered catarse_bootstrap/layouts/_hotjar.html.slim (0.3ms)\r\n  Rendered catarse_bootstrap/layouts/_analytics.html.slim (0.2ms)\r\n  Rendered catarse_bootstrap/layouts/_elevio.html.slim (0.4ms)\r\nCompleted 404 Not Found in 23ms (Views: 7.9ms | ActiveRecord: 0.0ms)\r\n```\r\n\r\nHere is what I did (on my local machine, after failing running the app on the server): \r\n\r\n* After cloning the repo, I bundle install, bower install.\r\n* I configure nginx with an upstream, [as shown here](https://gist.github.com/rdupz/5c6c0de488c4b0ea30b8).\r\n* I run rails with : `rails s -e production -p 3000`\r\n\r\nPlease note that the problem **does not appear in dev mode** ; this is why I don't think it is a webserver misconfiguration.\r\n\r\nDo you have an idea for this ? While i tried a lot of things (puma, thin, unicorn, passenger, localy and on the remote server, precompiling assets..), I'm still not able to get catarse working properly in production (I don't want to use heroku).\r\n\r\nRegards,"}}