如何以正确的方式将Vuejs项目部署到heroku?

时间:2018-06-25 20:06:48

标签: heroku vue.js vuejs2 web-deployment

此致

我试图在heroku中上载我的应用程序,但是当我为该应用程序生成链接时,它向我显示错误“应用程序错误 应用程序中发生错误,无法提供您的页面。如果您是应用程序所有者,请检查日志以获取详细信息。 “

构建应用程序时,它仅在dist文件夹中生成以下文件: build.js和build.js.map

这是日志文件:

   Installing any new modules (package.json)
   up to date in 6.643s
    -----> Caching build
   Clearing previous node cache
   Saving 2 cacheDirectories (default):
   - node_modules
   - bower_components (nothing to cache)
    -----> Pruning devDependencies
   Skipping because npm 5.6.0 sometimes fails when running 'npm prune' due to a known issue
   https://github.com/npm/npm/issues/19356

   You can silence this warning by updating to at least npm 5.7.1 in your package.json
   https://devcenter.heroku.com/articles/nodejs-support#specifying-an-npm-version
   -----> Build succeeded!
   !     This app may not specify any way to start a node process
   https://devcenter.heroku.com/articles/nodejs-support#default-web-process- 
   type
   -----> Discovering process types
   Procfile declares types     -> (none)
   Default types for buildpack -> web
   -----> Compressing...
   Done: 45.7M
   -----> Launching...
   Released v3
   https://tmdb-content-app.herokuapp.com/ deployed to Heroku

0 个答案:

没有答案