{"action":"created","issue":{"url":"https://api.github.com/repos/psychok7/django-project-template-yadpt/issues/17","repository_url":"https://api.github.com/repos/psychok7/django-project-template-yadpt","labels_url":"https://api.github.com/repos/psychok7/django-project-template-yadpt/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/psychok7/django-project-template-yadpt/issues/17/comments","events_url":"https://api.github.com/repos/psychok7/django-project-template-yadpt/issues/17/events","html_url":"https://github.com/psychok7/django-project-template-yadpt/issues/17","id":182327478,"number":17,"title":"Initial Startup script","user":{"login":"psychok7","id":282284,"avatar_url":"https://avatars.githubusercontent.com/u/282284?v=3","gravatar_id":"","url":"https://api.github.com/users/psychok7","html_url":"https://github.com/psychok7","followers_url":"https://api.github.com/users/psychok7/followers","following_url":"https://api.github.com/users/psychok7/following{/other_user}","gists_url":"https://api.github.com/users/psychok7/gists{/gist_id}","starred_url":"https://api.github.com/users/psychok7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psychok7/subscriptions","organizations_url":"https://api.github.com/users/psychok7/orgs","repos_url":"https://api.github.com/users/psychok7/repos","events_url":"https://api.github.com/users/psychok7/events{/privacy}","received_events_url":"https://api.github.com/users/psychok7/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/psychok7/django-project-template-yadpt/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/psychok7/django-project-template-yadpt/milestones/1","html_url":"https://github.com/psychok7/django-project-template-yadpt/milestones/1.0.0","labels_url":"https://api.github.com/repos/psychok7/django-project-template-yadpt/milestones/1/labels","id":2021602,"number":1,"title":"1.0.0","description":"This will be our following stable major release","creator":{"login":"psychok7","id":282284,"avatar_url":"https://avatars.githubusercontent.com/u/282284?v=3","gravatar_id":"","url":"https://api.github.com/users/psychok7","html_url":"https://github.com/psychok7","followers_url":"https://api.github.com/users/psychok7/followers","following_url":"https://api.github.com/users/psychok7/following{/other_user}","gists_url":"https://api.github.com/users/psychok7/gists{/gist_id}","starred_url":"https://api.github.com/users/psychok7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psychok7/subscriptions","organizations_url":"https://api.github.com/users/psychok7/orgs","repos_url":"https://api.github.com/users/psychok7/repos","events_url":"https://api.github.com/users/psychok7/events{/privacy}","received_events_url":"https://api.github.com/users/psychok7/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":6,"state":"open","created_at":"2016-09-22T11:27:23Z","updated_at":"2016-10-12T09:58:29Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2016-10-11T17:39:37Z","updated_at":"2016-10-12T10:13:51Z","closed_at":null,"body":"@pslobo @kapz\r\n\r\nWe should create a Python startup script that will simplify something like \r\n`django-admin startproject project_name  --template=/your_path/django-project-template-yadpt/minimal/ --extension='py, yml, conf, sh'` into `startproject project_name --context='/path/file` (maybe use a static --template pointing to github). \r\n\r\nThe extra-context could be the `.env` file with a mapping like `DOMAIN=\"github.com\"`. \r\nThe script would then read the file and pass the dictionary to a tool like https://github.com/alfredo/django-startproject-plus in order to override the need variables in the files.\r\n\r\nThe script will also create the let's encrypt certificates the first time before running anything else and call the following command:\r\n`docker run -it --rm -v https_certs:/etc/letsencrypt -p 80:80 -p 443:443 palobo/certbot:1.0 certonly -t -n --standalone -d github.com -m test@example.com --agree-tos`\r\n"},"comment":{"url":"https://api.github.com/repos/psychok7/django-project-template-yadpt/issues/comments/253173984","html_url":"https://github.com/psychok7/django-project-template-yadpt/issues/17#issuecomment-253173984","issue_url":"https://api.github.com/repos/psychok7/django-project-template-yadpt/issues/17","id":253173984,"user":{"login":"pslobo","id":1452095,"avatar_url":"https://avatars.githubusercontent.com/u/1452095?v=3","gravatar_id":"","url":"https://api.github.com/users/pslobo","html_url":"https://github.com/pslobo","followers_url":"https://api.github.com/users/pslobo/followers","following_url":"https://api.github.com/users/pslobo/following{/other_user}","gists_url":"https://api.github.com/users/pslobo/gists{/gist_id}","starred_url":"https://api.github.com/users/pslobo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pslobo/subscriptions","organizations_url":"https://api.github.com/users/pslobo/orgs","repos_url":"https://api.github.com/users/pslobo/repos","events_url":"https://api.github.com/users/pslobo/events{/privacy}","received_events_url":"https://api.github.com/users/pslobo/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T10:13:51Z","updated_at":"2016-10-12T10:13:51Z","body":"We either need some way to specify if we're going to run production or staging, mainly because of the `https_certs` volume. We either have the option to create both i.e. `production_https_certs` and `staging_https_certs` or the script needs to know which environment the user is planing on running and just create the right volume."}}
{"actor":{"display_login":"pslobo"}}