{"action":"closed","issue":{"url":"https://api.github.com/repos/thinkful-ei18/evan-dylan-petful-client2/issues/10","repository_url":"https://api.github.com/repos/thinkful-ei18/evan-dylan-petful-client2","labels_url":"https://api.github.com/repos/thinkful-ei18/evan-dylan-petful-client2/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/thinkful-ei18/evan-dylan-petful-client2/issues/10/comments","events_url":"https://api.github.com/repos/thinkful-ei18/evan-dylan-petful-client2/issues/10/events","html_url":"https://github.com/thinkful-ei18/evan-dylan-petful-client2/issues/10","id":314141452,"number":10,"title":"Deploy client to netlify","user":{"login":"resputin","id":5473765,"avatar_url":"https://avatars2.githubusercontent.com/u/5473765?v=4","gravatar_id":"","url":"https://api.github.com/users/resputin","html_url":"https://github.com/resputin","followers_url":"https://api.github.com/users/resputin/followers","following_url":"https://api.github.com/users/resputin/following{/other_user}","gists_url":"https://api.github.com/users/resputin/gists{/gist_id}","starred_url":"https://api.github.com/users/resputin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resputin/subscriptions","organizations_url":"https://api.github.com/users/resputin/orgs","repos_url":"https://api.github.com/users/resputin/repos","events_url":"https://api.github.com/users/resputin/events{/privacy}","received_events_url":"https://api.github.com/users/resputin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-13T14:59:34Z","updated_at":"2018-04-14T02:00:14Z","closed_at":"2018-04-14T02:00:14Z","author_association":"COLLABORATOR","body":"If you need a review on Netlify, you can read the curriculum lesson on Netlify; otherwise, install Netlify if you haven't already (npm install -g netlify-cli) and do the following in your client folder:\r\n\r\nCreate a Netlify app: netlify create\r\nIf you are new to Netlify this should open a web browser and allow you to sign up.\r\nBe sure to add .netlify to .gitignore!\r\nCreate a _redirects file in public directory containing the following line: /* /index.html 200.\r\nCreate an .env.production.local file with the variable REACT_APP_API_BASE_URL and point it to https://YOUR-APP-NAME.herokuapp.com/api\r\nadding .production.local to the filename means this file won’t be read when we run the app with npm start, but will be read when we run our build script. You can read more about when create-react-app will use a particular .env file.\r\nThe REACT_APP_ prefix on the variable is necessary in order for react-scripts to embed it for us.\r\nCreate a production build of the client: npm run build\r\nDeploy your app by running netlify deploy -p build . Your browser will open and prompt you to authenticate.\r\nYou will need to rerun both of these commands to deploy future changes.\r\nYou shouldn't need to authenticate for subsequent deployments of this app."}}
{"actor":{"display_login":"resputin"}}