title: Error: Cannot GET / [QUASAR FRAMEWORK] [HEROKU DEPLOYEMENT]
body: <p>I'm trying to publish my Quasar app on Heroku. I'm using Express to serve my front.</p>
  <p>I succeed to publish my app on Heroku with that link: <a href="https://quasar.dev/quasar-cli/developing-spa/deploying" rel="nofollow noreferrer">https://quasar.dev/quasar-cli/developing-spa/deploying</a>.
  My application is deployed on <a href="https://coronavirus-statistics-app.herokuapp.com/" rel="nofollow noreferrer">https://coronavirus-statistics-app.herokuapp.com/</a>  but when I try to access it, I got an error &quot;Cannot GET /&quot;.</p>
  <p>My server file:</p>
  <pre><code>const
    express = require('express'),
    serveStatic = require('serve-static'),
    history = require('connect-history-api-fallback'),
    port = process.env.PORT || 5000
  const app = express()
  app.use(history())
  app.use(serveStatic(__dirname + '/dist/spa'))
  app.listen(port)
  </code></pre>
  <p>In local, I can access to my application at http://localhost:5000/#/home and my different views http://localhost:5000/#/table, http://localhost:5000/#/about ...</p>
  <p>My log from Heroku deployement:</p>
  <pre><code>-----&gt; Building on the Heroku-20 stack
  -----&gt; Node.js app detected
         
  -----&gt; Creating runtime environment
         
         NPM_CONFIG_LOGLEVEL=error
         NODE_VERBOSE=false
         NODE_ENV=production
         NODE_MODULES_CACHE=true
         
  -----&gt; Installing binaries
         engines.node (package.json):  &gt;= 10.18.1
         engines.npm (package.json):   &gt;= 6.13.4
         engines.yarn (package.json):  &gt;= 1.21.1
         
         Resolving node version &gt;= 10.18.1...
         Downloading and installing node 15.11.0...
         Bootstrapping npm &gt;= 6.13.4 (replacing 7.6.0)...
         npm &gt;= 6.13.4 installed
         Resolving yarn version &gt;= 1.21.1...
         Downloading and installing yarn (1.22.10)
         Installed yarn 1.22.10
         
  -----&gt; Restoring cache
         - node_modules
         
  -----&gt; Installing dependencies
         Installing node modules
         
         added 1377 packages, and audited 1378 packages in 43s
         
         1 high severity vulnerability
         
         To address all issues (including breaking changes), run:
           npm audit fix --force
         
         Run `npm audit` for details.
         
  -----&gt; Build
         Detected both &quot;build&quot; and &quot;heroku-postbuild&quot; scripts
         Running heroku-postbuild
         
         &gt; corona-app@0.0.1 heroku-postbuild
         &gt; yarn &amp;&amp; yarn build
         
         yarn install v1.22.10
         info No lockfile found.
  warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
         [1/5] Validating package.json...
         [2/5] Resolving packages...
  warning axios@0.18.1: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410
  warning @quasar/app &gt; webpack-dev-server &gt; chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
  warning @quasar/app &gt; chokidar &gt; fsevents@2.1.3: &quot;Please update to latest v2.3 or v2.2&quot;
  warning @quasar/app &gt; webpack-dev-server &gt; chokidar &gt; fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
  warning @quasar/app &gt; webpack &gt; watchpack &gt; watchpack-chokidar2 &gt; chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
  warning @quasar/app &gt; stylus &gt; css-parse &gt; css &gt; urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
  warning @quasar/app &gt; webpack-dev-server &gt; chokidar &gt; braces &gt; snapdragon &gt; source-map-resolve &gt; urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
  warning @quasar/app &gt; webpack-dev-server &gt; chokidar &gt; braces &gt; snapdragon &gt; source-map-resolve &gt; resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
         [3/5] Fetching packages...
         info fsevents@2.1.3: The platform &quot;linux&quot; is incompatible with this module.
         info &quot;fsevents@2.1.3&quot; is an optional dependency and failed compatibility check. Excluding it from installation.
         info fsevents@2.3.2: The platform &quot;linux&quot; is incompatible with this module.
         info &quot;fsevents@2.3.2&quot; is an optional dependency and failed compatibility check. Excluding it from installation.
         info fsevents@1.2.13: The platform &quot;linux&quot; is incompatible with this module.
         info &quot;fsevents@1.2.13&quot; is an optional dependency and failed compatibility check. Excluding it from installation.
         [4/5] Linking dependencies...
         [5/5] Building fresh packages...
         success Saved lockfile.
         Done in 35.33s.
         yarn run v1.22.10
         $ yarn
  warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
         [1/5] Validating package.json...
         [2/5] Resolving packages...
         success Already up-to-date.
         Done in 1.44s.
         
  -----&gt; Caching build
         - node_modules
         
  -----&gt; Pruning devDependencies
         
         added 7 packages, removed 6 packages, and audited 70 packages in 4s
         
         1 high severity vulnerability
         
         To address all issues (including breaking changes), run:
           npm audit fix --force
         
         Run `npm audit` for details.
         
  -----&gt; Build succeeded!
  -----&gt; Discovering process types
         Procfile declares types     -&gt; (none)
         Default types for buildpack -&gt; web
  -----&gt; Compressing...
         Done: 44.9M
  -----&gt; Launching...
         Released v8
         https://coronavirus-statistics-app.herokuapp.com/ deployed to Heroku
  </code></pre>
  <p>My logs from Heroku when I try to reach my app:</p>
  <pre><code>2021-03-07T10:10:06.024914+00:00 app[web.1]: Error: ENOENT: no such file or directory, stat '/app/dist/spa/index.html'
  2021-03-07T10:10:06.025410+00:00 heroku[router]: at=info method=GET path=&quot;/&quot; host=coronavirus-statistics-app.herokuapp.com request_id=86909de1-ee05-4c15-ae11-16a2f0bab822 fwd=&quot;183.182.112.106&quot; dyno=web.1 connect=0ms service=8ms status=404 bytes=380 protocol=https
  </code></pre>
  <p>How to solve the problem?
  Thanks for your help </p>