{"action":"created","issue":{"url":"https://api.github.com/repos/flynn/flynn/issues/2631","repository_url":"https://api.github.com/repos/flynn/flynn","labels_url":"https://api.github.com/repos/flynn/flynn/issues/2631/labels{/name}","comments_url":"https://api.github.com/repos/flynn/flynn/issues/2631/comments","events_url":"https://api.github.com/repos/flynn/flynn/issues/2631/events","html_url":"https://github.com/flynn/flynn/issues/2631","id":143367695,"number":2631,"title":"Postgres Not Persisting","user":{"login":"aaronfranco","id":11521696,"avatar_url":"https://avatars.githubusercontent.com/u/11521696?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronfranco","html_url":"https://github.com/aaronfranco","followers_url":"https://api.github.com/users/aaronfranco/followers","following_url":"https://api.github.com/users/aaronfranco/following{/other_user}","gists_url":"https://api.github.com/users/aaronfranco/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronfranco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronfranco/subscriptions","organizations_url":"https://api.github.com/users/aaronfranco/orgs","repos_url":"https://api.github.com/users/aaronfranco/repos","events_url":"https://api.github.com/users/aaronfranco/events{/privacy}","received_events_url":"https://api.github.com/users/aaronfranco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-24T21:40:48Z","updated_at":"2016-03-24T21:57:20Z","closed_at":null,"body":"hello,\r\n\r\nI have an Nodejs app that saves data into Postgres using pg-native nodejs module.\r\n```\r\n        pg.connect(db_conn, function(err, client, done) {\r\n                if (err) {\r\n                    console.log(\"PostGres connection error:\"+err);\r\n                    if(client){\r\n                        done(client);\r\n                    }\r\n                    reject(err);\r\n                } else {\r\n                    resolve({\"client\":client, \"done\":done});\r\n                }\r\n            }\r\n        );\r\n```\r\nWhen I made some code modifications and then redeploy my app using flynn dashboard, either the data is at a much older version or it is entirely gone. \r\n\r\nIs this the expected behavior?"},"comment":{"url":"https://api.github.com/repos/flynn/flynn/issues/comments/201043025","html_url":"https://github.com/flynn/flynn/issues/2631#issuecomment-201043025","issue_url":"https://api.github.com/repos/flynn/flynn/issues/2631","id":201043025,"user":{"login":"aaronfranco","id":11521696,"avatar_url":"https://avatars.githubusercontent.com/u/11521696?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronfranco","html_url":"https://github.com/aaronfranco","followers_url":"https://api.github.com/users/aaronfranco/followers","following_url":"https://api.github.com/users/aaronfranco/following{/other_user}","gists_url":"https://api.github.com/users/aaronfranco/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronfranco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronfranco/subscriptions","organizations_url":"https://api.github.com/users/aaronfranco/orgs","repos_url":"https://api.github.com/users/aaronfranco/repos","events_url":"https://api.github.com/users/aaronfranco/events{/privacy}","received_events_url":"https://api.github.com/users/aaronfranco/received_events","type":"User","site_admin":false},"created_at":"2016-03-24T21:57:20Z","updated_at":"2016-03-24T21:57:20Z","body":"I can confirm that when I run my app, the data is saved into the DB. Then, when I modify my release and redeploy, the database is at some older version... perhaps the data isn't being pushed to the replica-set completely... ? I'll continue investigating my app, however it never deletes data or write over the database on boot."}}