{"action":"created","issue":{"url":"https://api.github.com/repos/komuw/django-api-lambda/issues/4","repository_url":"https://api.github.com/repos/komuw/django-api-lambda","labels_url":"https://api.github.com/repos/komuw/django-api-lambda/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/komuw/django-api-lambda/issues/4/comments","events_url":"https://api.github.com/repos/komuw/django-api-lambda/issues/4/events","html_url":"https://github.com/komuw/django-api-lambda/issues/4","id":298194470,"number":4,"title":"fix staticfiles","user":{"login":"komuw","id":5163857,"avatar_url":"https://avatars2.githubusercontent.com/u/5163857?v=4","gravatar_id":"","url":"https://api.github.com/users/komuw","html_url":"https://github.com/komuw","followers_url":"https://api.github.com/users/komuw/followers","following_url":"https://api.github.com/users/komuw/following{/other_user}","gists_url":"https://api.github.com/users/komuw/gists{/gist_id}","starred_url":"https://api.github.com/users/komuw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/komuw/subscriptions","organizations_url":"https://api.github.com/users/komuw/orgs","repos_url":"https://api.github.com/users/komuw/repos","events_url":"https://api.github.com/users/komuw/events{/privacy}","received_events_url":"https://api.github.com/users/komuw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-19T08:33:41Z","updated_at":"2018-02-19T22:10:24Z","closed_at":null,"author_association":"OWNER","body":"when the following is set;\r\n\r\n```bash\r\n\"proxy\": {\r\n        \"command\": \"python app.py collectstatic --no-color --noinput; python app.py runserver 0.0.0.0:$PORT\",\r\n        \"timeout\": 25,\r\n        \"listen_timeout\": 25\r\n    },\r\n```\r\n\r\nwe get the following error:\r\n```bash\r\n11:27:55am ERRO Traceback (most recent call last):\r\n  File \"app.py\", line 26, in <module>\r\n    execute_from_command_line(sys.argv)\r\n  File \"/var/task/.pypath/django/core/management/__init__.py\", line 364, in execute_from_command_line\r\n    utility.execute()\r\n  File \"/var/task/.pypath/django/core/management/__init__.py\", line 356, in execute\r\n    self.fetch_command(subcommand).run_from_argv(self.argv)\r\n  File \"/var/task/.pypath/django/core/management/base.py\", line 283, in run_from_argv\r\n    self.execute(*args, **cmd_options)\r\n  File \"/var/task/.pypath/django/core/management/base.py\", line 330, in execute\r\n    output = self.handle(*args, **options)\r\n  File \"/var/task/.pypath/django/contrib/staticfiles/management/commands/collectstatic.py\", line 199, in handle\r\n    collected = self.collect()\r\n  File \"/var/task/.pypath/django/contrib/staticfiles/management/commands/collectstatic.py\", line 124, in collect\r\n    handler(path, prefixed_path, storage)\r\n  File \"/var/task/.pypath/django/contrib/staticfiles/management/commands/collectstatic.py\", line 354, in copy_file\r\n    if not self.delete_file(path, prefixed_path, source_storage):\r\n  File \"/var/task/.pypath/django/contrib/staticfiles/management/commands/collectstatic.py\", line 304, in delete_file\r\n    self.storage.delete(prefixed_path)\r\n  File \"/var/task/.pypath/django/core/files/storage.py\", line 386, in delete\r\n    os.remove(name)\r\n    stage: staging\r\n    version: 26\r\n\r\n  11:27:55am ERRO OSError: [Errno 30] Read-only file system: '/var/task/static/admin/img/search.svg'\r\n```\r\n\r\nthis is coz, the staticfiles mgmnt command is trying to write/delete files in/from `'/var/task/static/` which is a readonly filesystem. \r\n\r\nWe need to figure out which paths in lambda are writeable and set staticfiles to go there."},"comment":{"url":"https://api.github.com/repos/komuw/django-api-lambda/issues/comments/366814443","html_url":"https://github.com/komuw/django-api-lambda/issues/4#issuecomment-366814443","issue_url":"https://api.github.com/repos/komuw/django-api-lambda/issues/4","id":366814443,"user":{"login":"komuw","id":5163857,"avatar_url":"https://avatars2.githubusercontent.com/u/5163857?v=4","gravatar_id":"","url":"https://api.github.com/users/komuw","html_url":"https://github.com/komuw","followers_url":"https://api.github.com/users/komuw/followers","following_url":"https://api.github.com/users/komuw/following{/other_user}","gists_url":"https://api.github.com/users/komuw/gists{/gist_id}","starred_url":"https://api.github.com/users/komuw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/komuw/subscriptions","organizations_url":"https://api.github.com/users/komuw/orgs","repos_url":"https://api.github.com/users/komuw/repos","events_url":"https://api.github.com/users/komuw/events{/privacy}","received_events_url":"https://api.github.com/users/komuw/received_events","type":"User","site_admin":false},"created_at":"2018-02-19T22:10:24Z","updated_at":"2018-02-19T22:10:24Z","author_association":"OWNER","body":"we'll ignore staticfile handling for now."}}
{"actor":{"display_login":"komuw"}}