###前提・実現したいこと
Node.jsでServerを作ったのでherokuにデプロイしようと思ったが、gitでadd -> commit -> push してURLを打ち込んでも「Application Error」が表示される。
なお、serverはローカルでの動作は確認済みです。
###発生している問題・エラーメッセージ
URLを打ち込むとこのようなエラー
Application Error An error occurred in the application and your page could not be served. Please try again in a few moments. If you are the application owner, check your logs for details.
###該当のソースコード
Procfile
web: node server
package.json
{ "name": "server", "version": "0.0.1", "main": "server.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "start": "node server.js" }, "author": "", "license": "ISC", "dependencies": { "express": "^4.13.4" }, "engines": { "node": "v0.12.x", "npm": "3.8.x" }, "description": "" }
###補足情報(言語/FW/ツール等のバージョンなど)
何がデプロイに必要なのかわからないので、お聞きください。
回答2件
あなたの回答
tips
プレビュー