{"action":"created","issue":{"url":"https://api.github.com/repos/supercaracal/aniwatch/issues/1","repository_url":"https://api.github.com/repos/supercaracal/aniwatch","labels_url":"https://api.github.com/repos/supercaracal/aniwatch/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/supercaracal/aniwatch/issues/1/comments","events_url":"https://api.github.com/repos/supercaracal/aniwatch/issues/1/events","html_url":"https://github.com/supercaracal/aniwatch/issues/1","id":187949342,"number":1,"title":"Provisioning for Rails app on Azure VM Ubuntu 16.10","user":{"login":"supercaracal","id":364486,"avatar_url":"https://avatars.githubusercontent.com/u/364486?v=3","gravatar_id":"","url":"https://api.github.com/users/supercaracal","html_url":"https://github.com/supercaracal","followers_url":"https://api.github.com/users/supercaracal/followers","following_url":"https://api.github.com/users/supercaracal/following{/other_user}","gists_url":"https://api.github.com/users/supercaracal/gists{/gist_id}","starred_url":"https://api.github.com/users/supercaracal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supercaracal/subscriptions","organizations_url":"https://api.github.com/users/supercaracal/orgs","repos_url":"https://api.github.com/users/supercaracal/repos","events_url":"https://api.github.com/users/supercaracal/events{/privacy}","received_events_url":"https://api.github.com/users/supercaracal/received_events","type":"User","site_admin":false},"labels":[{"id":59627276,"url":"https://api.github.com/repos/supercaracal/aniwatch/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"supercaracal","id":364486,"avatar_url":"https://avatars.githubusercontent.com/u/364486?v=3","gravatar_id":"","url":"https://api.github.com/users/supercaracal","html_url":"https://github.com/supercaracal","followers_url":"https://api.github.com/users/supercaracal/followers","following_url":"https://api.github.com/users/supercaracal/following{/other_user}","gists_url":"https://api.github.com/users/supercaracal/gists{/gist_id}","starred_url":"https://api.github.com/users/supercaracal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supercaracal/subscriptions","organizations_url":"https://api.github.com/users/supercaracal/orgs","repos_url":"https://api.github.com/users/supercaracal/repos","events_url":"https://api.github.com/users/supercaracal/events{/privacy}","received_events_url":"https://api.github.com/users/supercaracal/received_events","type":"User","site_admin":false},"assignees":[{"login":"supercaracal","id":364486,"avatar_url":"https://avatars.githubusercontent.com/u/364486?v=3","gravatar_id":"","url":"https://api.github.com/users/supercaracal","html_url":"https://github.com/supercaracal","followers_url":"https://api.github.com/users/supercaracal/followers","following_url":"https://api.github.com/users/supercaracal/following{/other_user}","gists_url":"https://api.github.com/users/supercaracal/gists{/gist_id}","starred_url":"https://api.github.com/users/supercaracal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supercaracal/subscriptions","organizations_url":"https://api.github.com/users/supercaracal/orgs","repos_url":"https://api.github.com/users/supercaracal/repos","events_url":"https://api.github.com/users/supercaracal/events{/privacy}","received_events_url":"https://api.github.com/users/supercaracal/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-11-08T10:03:41Z","updated_at":"2016-11-12T13:58:40Z","closed_at":null,"body":"### japanize\r\n```\r\n$ sudo vim /etc/locale.gen # Remove commented out ja_JP.UTF-8\r\n$ sudo locale-gen\r\n$ sudo update-locale LANG=ja_JP.UTF-8\r\n$ sudo dpkg-reconfigure tzdata # Select Asia->Tokyo\r\n```\r\n\r\n### apt install\r\n```\r\n$ sudo apt install build-essential libssl-dev libreadline-dev zlib1g-dev libpq-dev postgresql-9.5 nginx\r\n```\r\n\r\n### dotfiles\r\n* https://github.com/supercaracal/dotfiles\r\n\r\n### vim\r\n* https://github.com/Shougo/dein.vim\r\n\r\n### tmux\r\n* https://github.com/seebi/tmux-colors-solarized\r\n\r\n### rbenv\r\n```\r\n$ git clone https://github.com/rbenv/rbenv.git ~/.rbenv\r\n$ git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build\r\n$ git clone https://github.com/rbenv/rbenv-vars.git ~/.rbenv/plugins/rbenv-vars\r\n$ rbenv install 2.3.1\r\n$ rbenv global 2.3.1\r\n$ gem install bundler rubocop\r\n$ rbenv rehash\r\n$ vi .rbenv-vars # Add secret key base\r\n```\r\n\r\n### ndenv\r\n```\r\n$ git clone https://github.com/riywo/ndenv ~/.ndenv\r\n$ git clone https://github.com/riywo/node-build.git .ndenv/plugins/node-build\r\n$ ndenv install v7.0.0\r\n$ ndenv global v7.0.0\r\n$ npm -g update npm\r\n$ npm -g install jshint\r\n$ ndenv rehash\r\n```\r\n\r\n### postgresql config\r\n* postgresql.conf\r\n* pg_hba.conf\r\n\r\n### puma config\r\n* https://github.com/puma/puma/tree/master/tools/jungle/init.d\r\n```\r\nRAILS_ENV='production'\r\nPORT=3000\r\nRAILS_MAX_THREADS=1\r\nPATH=\"/home/kasuga/.ndenv/shims:$PATH\"\r\n```\r\n\r\n### nginx config\r\n* https://github.com/puma/puma/blob/master/docs/nginx.md\r\n```\r\n$ cat /etc/nginx/sites-available/default\r\nserver {\r\n  listen 80 default_server;\r\n  listen [::]:80 default_server;\r\n\r\n  root /home/kasuga/vcs/aniwatch/public;\r\n  server_name aniwatch.japaneast.cloudapp.azure.com;\r\n\r\n  keepalive_timeout 5;\r\n\r\n  location / {\r\n    proxy_pass http://localhost:3000;\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/supercaracal/aniwatch/issues/comments/260123601","html_url":"https://github.com/supercaracal/aniwatch/issues/1#issuecomment-260123601","issue_url":"https://api.github.com/repos/supercaracal/aniwatch/issues/1","id":260123601,"user":{"login":"supercaracal","id":364486,"avatar_url":"https://avatars.githubusercontent.com/u/364486?v=3","gravatar_id":"","url":"https://api.github.com/users/supercaracal","html_url":"https://github.com/supercaracal","followers_url":"https://api.github.com/users/supercaracal/followers","following_url":"https://api.github.com/users/supercaracal/following{/other_user}","gists_url":"https://api.github.com/users/supercaracal/gists{/gist_id}","starred_url":"https://api.github.com/users/supercaracal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supercaracal/subscriptions","organizations_url":"https://api.github.com/users/supercaracal/orgs","repos_url":"https://api.github.com/users/supercaracal/repos","events_url":"https://api.github.com/users/supercaracal/events{/privacy}","received_events_url":"https://api.github.com/users/supercaracal/received_events","type":"User","site_admin":false},"created_at":"2016-11-12T13:58:40Z","updated_at":"2016-11-12T13:58:40Z","body":"* [git pushでデプロイを自動化する](http://kouritsu.biz/auto-deploy-by-git-hook-and-git-push/)\r\n* [git pushで本番環境に”自動デプロイ”できる環境を作ってみよう！](http://vdeep.net/git-push-deploy)\r\n* [gitでシンプルなデプロイ環境を作る](http://qiita.com/zaburo/items/8886be1a733aaf581045)\r\n* [Automating deployments to integrators](https://developer.github.com/guides/automating-deployments-to-integrators/)"}}
{"actor":{"display_login":"supercaracal"}}