title: Deploy a full stack MERN web ap to Netlify oor Heroku
body: <p>I want to Deploy a full stack MERN web ap to Netlify oor Heroku but it always gives me an error I tried several things but nothing works anyone can help me with that? 
  This code were deployed in Heroku and gave me an error page unavailable I tried several times without succeeding </p>
  
  <p>Github code : <a href="https://github.com/hazem-kamel/Guestbook-MERN" rel="nofollow noreferrer">https://github.com/hazem-kamel/Guestbook-MERN</a></p>
  
  <p>Logs when trying to deploy using GitHub and Heroku :</p>
  
  <p>Logs :</p>
  
  <pre><code>-----&gt; Node.js app detected
  
  -----&gt; Creating runtime environment
  
         NPM_CONFIG_LOGLEVEL=error
         NODE_ENV=production
         NODE_MODULES_CACHE=true
         NODE_VERBOSE=false
  
  -----&gt; Installing binaries
         engines.node (package.json):  13.8.0
         engines.npm (package.json):   unspecified (use default)
  
         Resolving node version 13.8.0...
         Downloading and installing node 13.8.0...
         Using default npm version: 6.13.6
  
  -----&gt; Installing dependencies
         Prebuild detected (node_modules already exists)
         Rebuilding any native modules
  
         &gt; bcrypt@4.0.1 install /tmp/build_b3af99df845ca37998271723b79f6f44/node_modules/bcrypt
         &gt; node-pre-gyp install --fallback-to-build
  
         [bcrypt] Success: "/tmp/build_b3af99df845ca37998271723b79f6f44/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node" already installed
         Pass --update-binary to reinstall or --build-from-source to recompile
  
         Installing any new modules (package.json)
         audited 286 packages in 2.176s
  
         3 packages are looking for funding
           run `npm fund` for details
  
         found 0 vulnerabilities
  
  
  -----&gt; Build
         Running heroku-postbuild
  
         &gt; backend@1.0.0 heroku-postbuild /tmp/build_b3af99df845ca37998271723b79f6f44
         &gt; NPM_CONFIG_PRODUCTION=false npm install --prefix client &amp;&amp; npm run build --prefix client
  
         audited 1926 packages in 13.657s
  
         58 packages are looking for funding
           run `npm fund` for details
  
         found 2 vulnerabilities (1 low, 1 high)
           run `npm audit fix` to fix them, or `npm audit` for details
  
         &gt; frontend@0.1.0 build /tmp/build_b3af99df845ca37998271723b79f6f44/client
         &gt; react-scripts build
  
         Creating an optimized production build...
         Compiled with warnings.
  
         ./src/components/Login/Login.js
           Line 12:6:  React Hook useEffect has a missing dependency: 'Redirect'. Either include it or remove the dependency array  react-hooks/exhaustive-deps
  
         ./src/components/Register/Register.js
           Line 12:6:  React Hook useEffect has a missing dependency: 'Redirect'. Either include it or remove the dependency array  react-hooks/exhaustive-deps
  
         ./src/components/Chats/Chats.js
           Line 36:6:  React Hook useEffect has missing dependencies: 'friend' and 'user'. Either include them or remove the dependency array  react-hooks/exhaustive-deps
  
         ./src/components/Dashboard/Dashboard.js
           Line 46:11:  Nested block is redundant  no-lone-blocks
  
         Search for the keywords to learn more about each warning.
         To ignore, add // eslint-disable-next-line to the line before.
  
         The project was built assuming it is hosted at /.
         You can control this with the homepage field in your package.json.
  
         The build folder is ready to be deployed.
         You may serve it with a static server:
  
           npm install -g serve
           serve -s build
  
         Find out more about deployment here:
  
           bit.ly/CRA-deploy
  -----&gt; Caching build
         - node_modules
  
  -----&gt; Pruning devDependencies
         audited 286 packages in 2.127s
  
         3 packages are looking for funding
           run `npm fund` for details
  
         found 0 vulnerabilities
  
  
  -----&gt; Build succeeded!
  -----&gt; Discovering process types
         Procfile declares types     -&gt; (none)
         Default types for buildpack -&gt; web
  -----&gt; Compressing...
         Done: 84.9M
  -----&gt; Launching...
         Released v3
         https://guestbook-chat.herokuapp.com/ deployed to Heroku```
  </code></pre>