{"action":"created","issue":{"url":"https://api.github.com/repos/decide-ganimedes-autenticacion/decide-ganimedes-autenticacion/issues/77","repository_url":"https://api.github.com/repos/decide-ganimedes-autenticacion/decide-ganimedes-autenticacion","labels_url":"https://api.github.com/repos/decide-ganimedes-autenticacion/decide-ganimedes-autenticacion/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/decide-ganimedes-autenticacion/decide-ganimedes-autenticacion/issues/77/comments","events_url":"https://api.github.com/repos/decide-ganimedes-autenticacion/decide-ganimedes-autenticacion/issues/77/events","html_url":"https://github.com/decide-ganimedes-autenticacion/decide-ganimedes-autenticacion/pull/77","id":396169588,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQyNDQyNjQy","number":77,"title":"Nuevos cambios agregados para Heroku","user":{"login":"davigldom","id":34518143,"node_id":"MDQ6VXNlcjM0NTE4MTQz","avatar_url":"https://avatars2.githubusercontent.com/u/34518143?v=4","gravatar_id":"","url":"https://api.github.com/users/davigldom","html_url":"https://github.com/davigldom","followers_url":"https://api.github.com/users/davigldom/followers","following_url":"https://api.github.com/users/davigldom/following{/other_user}","gists_url":"https://api.github.com/users/davigldom/gists{/gist_id}","starred_url":"https://api.github.com/users/davigldom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davigldom/subscriptions","organizations_url":"https://api.github.com/users/davigldom/orgs","repos_url":"https://api.github.com/users/davigldom/repos","events_url":"https://api.github.com/users/davigldom/events{/privacy}","received_events_url":"https://api.github.com/users/davigldom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-01-05T14:25:35Z","updated_at":"2019-01-05T22:40:19Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/decide-ganimedes-autenticacion/decide-ganimedes-autenticacion/pulls/77","html_url":"https://github.com/decide-ganimedes-autenticacion/decide-ganimedes-autenticacion/pull/77","diff_url":"https://github.com/decide-ganimedes-autenticacion/decide-ganimedes-autenticacion/pull/77.diff","patch_url":"https://github.com/decide-ganimedes-autenticacion/decide-ganimedes-autenticacion/pull/77.patch"},"body":"### Descripción del pull request\r\nSe ha modificado el archivo \"Procfile\" para que se cree un superusuario por defecto, al desplegar Heroku (incidencia #40). Por esta razón, se eliminan las migraciones del repositorio. El superusuario creado por defecto será:\r\n- **User:** admin@decide.com\r\n- **Password:** practica\r\n\r\nSi se decidiese crear un nuevo superusuario sería necesario ejecutar los siguientes comandos:\r\n\r\n      heroku run -a decide-ganimedes bash\r\n      ./decide/manage makemigrations\r\n      ./decide/manage migrate\r\n      ./decide/manage createsuperuser\r\n\r\n### Motivo del pull request\r\nSe necesitaba una forma distinta de crear el superusuario en el despliegue de Heroku, la cual no fuera por comandos en la consola de Heroku, ya que estos comandos requerían de que existiesen las \"migrations\" en el repositorio, y éstas daban conflicto si se subían al repositorio padre de Decide-Ganímedes.\r\n\r\n### Pruebas y/o revisiones\r\nRealizar un despliegue manual de Heroku con esta configuración y comprobar que se puede acceder a la interfaz de administración de Django con dicho superusuario, sin necesidad de crear otro.\r\n\r\n### Capturas de pantalla o códigos importantes\r\nEl comando completo usado en el archivo \"Procfile\" para crear el superusuario por defecto es el siguiente:\r\n\r\n```\r\nrelease: sh -c 'cd decide && python manage.py makemigrations && python manage.py migrate && echo \"from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('\"'\"'admin@decide.com'\"'\"', '\"'\"'practica'\"'\"')\" | python3 ./manage.py shell'\r\n```\r\n### Cambios de configuración\r\nCon estos cambios, no será usuario crear un superusuario al desplegar Heroku para interactuar con la interfaz de Django. Además, las \"migrations\" ya no se subirán al repositorio."},"comment":{"url":"https://api.github.com/repos/decide-ganimedes-autenticacion/decide-ganimedes-autenticacion/issues/comments/451697923","html_url":"https://github.com/decide-ganimedes-autenticacion/decide-ganimedes-autenticacion/pull/77#issuecomment-451697923","issue_url":"https://api.github.com/repos/decide-ganimedes-autenticacion/decide-ganimedes-autenticacion/issues/77","id":451697923,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTY5NzkyMw==","user":{"login":"davigldom","id":34518143,"node_id":"MDQ6VXNlcjM0NTE4MTQz","avatar_url":"https://avatars2.githubusercontent.com/u/34518143?v=4","gravatar_id":"","url":"https://api.github.com/users/davigldom","html_url":"https://github.com/davigldom","followers_url":"https://api.github.com/users/davigldom/followers","following_url":"https://api.github.com/users/davigldom/following{/other_user}","gists_url":"https://api.github.com/users/davigldom/gists{/gist_id}","starred_url":"https://api.github.com/users/davigldom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davigldom/subscriptions","organizations_url":"https://api.github.com/users/davigldom/orgs","repos_url":"https://api.github.com/users/davigldom/repos","events_url":"https://api.github.com/users/davigldom/events{/privacy}","received_events_url":"https://api.github.com/users/davigldom/received_events","type":"User","site_admin":false},"created_at":"2019-01-05T22:40:19Z","updated_at":"2019-01-05T22:40:19Z","author_association":"COLLABORATOR","body":"Travis CI ha fallado al realizar la build. Al parecer, la librería para implementar Google y GitHub no está bien añadida a la configuración de Django. Revisad el [log de dicha build](https://travis-ci.org/decide-ganimedes-autenticacion/decide-ganimedes-autenticacion/builds/475802696)."}}
{"actor":{"display_login":"davigldom"}}