{"action":"created","issue":{"url":"https://api.github.com/repos/backup/backup/issues/896","repository_url":"https://api.github.com/repos/backup/backup","labels_url":"https://api.github.com/repos/backup/backup/issues/896/labels{/name}","comments_url":"https://api.github.com/repos/backup/backup/issues/896/comments","events_url":"https://api.github.com/repos/backup/backup/issues/896/events","html_url":"https://github.com/backup/backup/issues/896","id":256728451,"number":896,"title":"Recommended way to use with Rails applications","user":{"login":"ciembor","id":702108,"avatar_url":"https://avatars2.githubusercontent.com/u/702108?v=4","gravatar_id":"","url":"https://api.github.com/users/ciembor","html_url":"https://github.com/ciembor","followers_url":"https://api.github.com/users/ciembor/followers","following_url":"https://api.github.com/users/ciembor/following{/other_user}","gists_url":"https://api.github.com/users/ciembor/gists{/gist_id}","starred_url":"https://api.github.com/users/ciembor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciembor/subscriptions","organizations_url":"https://api.github.com/users/ciembor/orgs","repos_url":"https://api.github.com/users/ciembor/repos","events_url":"https://api.github.com/users/ciembor/events{/privacy}","received_events_url":"https://api.github.com/users/ciembor/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-11T14:43:45Z","updated_at":"2017-09-12T07:55:19Z","closed_at":"2017-09-12T07:55:19Z","author_association":"NONE","body":"Hello. I'm going to write a tool that makes and loads a dump of a database everytime when someone changes branch in Rails (with bundler) environment. I know it's not recommended to use backup as a dependency for rails application. And I'm going to use backup as a dependency of my gem. What would be the recommended way to use it in such case? I can ask people to use my gem as a global, as well as backup, but I need to get information about rails settings (config/database.yml) when running the command in any of rails app directory.\r\n"},"comment":{"url":"https://api.github.com/repos/backup/backup/issues/comments/328772102","html_url":"https://github.com/backup/backup/issues/896#issuecomment-328772102","issue_url":"https://api.github.com/repos/backup/backup/issues/896","id":328772102,"user":{"login":"stuartellis","id":14588,"avatar_url":"https://avatars0.githubusercontent.com/u/14588?v=4","gravatar_id":"","url":"https://api.github.com/users/stuartellis","html_url":"https://github.com/stuartellis","followers_url":"https://api.github.com/users/stuartellis/followers","following_url":"https://api.github.com/users/stuartellis/following{/other_user}","gists_url":"https://api.github.com/users/stuartellis/gists{/gist_id}","starred_url":"https://api.github.com/users/stuartellis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuartellis/subscriptions","organizations_url":"https://api.github.com/users/stuartellis/orgs","repos_url":"https://api.github.com/users/stuartellis/repos","events_url":"https://api.github.com/users/stuartellis/events{/privacy}","received_events_url":"https://api.github.com/users/stuartellis/received_events","type":"User","site_admin":false},"created_at":"2017-09-12T07:55:19Z","updated_at":"2017-09-12T07:55:19Z","author_association":"MEMBER","body":"Hello @ciembor,\r\n\r\nThe honest answer is that I would not recommend using Backup at all for what you are describing. Backup is a lot of code, with a lot of features, and it is no longer actively developed.\r\n\r\nYour use case is quite specific, so I would suggest building a minimum viable solution. If you are building this just as a solution for yourself or your company, I would actually suggest starting by figuring out how to run a Rake task when the user changes branches, and then add a couple of Rake tasks to do what want. If you read the code in Backup, you will probably find that you can write simpler implementations."}}
{"actor":{"display_login":"stuartellis"}}