{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/rails-ex/issues/13","labels_url":"https://api.github.com/repos/openshift/rails-ex/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/openshift/rails-ex/issues/13/comments","events_url":"https://api.github.com/repos/openshift/rails-ex/issues/13/events","html_url":"https://github.com/openshift/rails-ex/issues/13","id":88779091,"number":13,"title":"Rails example issues","user":{"login":"mfojtik","id":44136,"avatar_url":"https://avatars.githubusercontent.com/u/44136?v=3","gravatar_id":"","url":"https://api.github.com/users/mfojtik","html_url":"https://github.com/mfojtik","followers_url":"https://api.github.com/users/mfojtik/followers","following_url":"https://api.github.com/users/mfojtik/following{/other_user}","gists_url":"https://api.github.com/users/mfojtik/gists{/gist_id}","starred_url":"https://api.github.com/users/mfojtik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfojtik/subscriptions","organizations_url":"https://api.github.com/users/mfojtik/orgs","repos_url":"https://api.github.com/users/mfojtik/repos","events_url":"https://api.github.com/users/mfojtik/events{/privacy}","received_events_url":"https://api.github.com/users/mfojtik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-16T16:41:49Z","updated_at":"2015-06-16T19:15:39Z","closed_at":null,"body":"Few more issues I found:\r\n\r\n1) The `http_basic_authenticate_with name: \"openshift\", password: \"secret\", except: [:index, :show]` in the \"articles\" controller must use ENV[\"ADMIN_USER\"]/ENV[\"ADMIN_PASSWORD\"]. Also these are **not** set as env vars, but they just exists as parameters now\r\n\r\n2) Navigate to `/articles/new` and get this error (the database exists at this point):\r\n```\r\nI, [2015-06-16T16:38:50.524034 #1]  INFO -- : Started GET \"/articles/new\" for 172.17.0.4 at 2015-06-16 16:38:50 +0000\r\nI, [2015-06-16T16:38:50.526076 #1]  INFO -- : Processing by ArticlesController#new as HTML\r\nE, [2015-06-16T16:38:50.529902 #1] ERROR -- : PG::UndefinedTable: ERROR:  relation \"articles\" does not exist\r\nLINE 5:                WHERE a.attrelid = '\"articles\"'::regclass\r\n                                          ^\r\n:               SELECT a.attname, format_type(a.atttypid, a.atttypmod),\r\n                     pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod\r\n                FROM pg_attribute a LEFT JOIN pg_attrdef d\r\n                  ON a.attrelid = d.adrelid AND a.attnum = d.adnum\r\n               WHERE a.attrelid = '\"articles\"'::regclass\r\n                 AND a.attnum > 0 AND NOT a.attisdropped\r\n               ORDER BY a.attnum\r\n\r\nI, [2015-06-16T16:38:50.530846 #1]  INFO -- : Completed 500 Internal Server Error in 5ms (ActiveRecord: 2.1ms)\r\nF, [2015-06-16T16:38:50.534080 #1] FATAL -- : \r\nActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR:  relation \"articles\" does not exist\r\nLINE 5:                WHERE a.attrelid = '\"articles\"'::regclass\r\n                                          ^\r\n:               SELECT a.attname, format_type(a.atttypid, a.atttypmod),\r\n                     pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod\r\n                FROM pg_attribute a LEFT JOIN pg_attrdef d\r\n                  ON a.attrelid = d.adrelid AND a.attnum = d.adnum\r\n               WHERE a.attrelid = '\"articles\"'::regclass\r\n                 AND a.attnum > 0 AND NOT a.attisdropped\r\n               ORDER BY a.attnum\r\n):\r\n  app/controllers/articles_controller.rb:20:in `new'\r\n```\r\n\r\n3) We have to store sessions into database (there is a configuration settings to do that)"},"comment":{"url":"https://api.github.com/repos/openshift/rails-ex/issues/comments/112533372","html_url":"https://github.com/openshift/rails-ex/issues/13#issuecomment-112533372","issue_url":"https://api.github.com/repos/openshift/rails-ex/issues/13","id":112533372,"user":{"login":"mfojtik","id":44136,"avatar_url":"https://avatars.githubusercontent.com/u/44136?v=3","gravatar_id":"","url":"https://api.github.com/users/mfojtik","html_url":"https://github.com/mfojtik","followers_url":"https://api.github.com/users/mfojtik/followers","following_url":"https://api.github.com/users/mfojtik/following{/other_user}","gists_url":"https://api.github.com/users/mfojtik/gists{/gist_id}","starred_url":"https://api.github.com/users/mfojtik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfojtik/subscriptions","organizations_url":"https://api.github.com/users/mfojtik/orgs","repos_url":"https://api.github.com/users/mfojtik/repos","events_url":"https://api.github.com/users/mfojtik/events{/privacy}","received_events_url":"https://api.github.com/users/mfojtik/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T19:15:39Z","updated_at":"2015-06-16T19:15:39Z","body":"@ewolinetz good news... 2) is not an issue... i scaled rails to 2 replicas and somehow screw the DB."}}