我已經管理讓我的早午餐建立在Heroku上。 但是,我的快遞顯示Cannot GET /
導航到該網站時。Brunch + Heroku build`不能GET /`
從日誌:
> [email protected] postinstall /tmp/build_13daabc0-9174-41fd-a59e-c2a894c07256
> ./node_modules/brunch/bin/brunch build --production
18 Jun 08:59:09 - info: compiled 21 files into 3 files, copied 23 in 5200ms
-----> Caching node_modules directory for future builds
-----> Cleaning up node-gyp and npm artifacts
-----> Building runtime environment
-----> Discovering process types
Procfile declares types -> web
-----> Compressing... done, 11.8MB
-----> Launching... done, v7
http://nameless-fortress-7923.herokuapp.com/ deployed to Heroku
To [email protected]:nameless-fortress-7923.git
+ 75f1076...9d2a80b master -> master (forced update)
的package.json依賴關係:
"dependencies": {
"express": "^4.4.3",
"passport-http": "^0.2.2",
"passport": "^0.2.0",
"brunch": "^1.7.14",
"javascript-brunch": "^1.7.1",
"coffee-script-brunch": "^1.7.3",
"css-brunch": "^1.7.0",
"stylus-brunch": "^1.7.0",
"static-jade-brunch": "^1.7.0",
"jade-brunch": "^1.5.1",
"uglify-js-brunch": "^1.7.7",
"clean-css-brunch": "^1.7.1"
},
我的快遞只是擔任了public/
(背後的一些認證),恰似this。
它成功構建,但它似乎像public/
文件夾被Heroku刪除/清除?
任何想法爲什麼發生這種情況將不勝感激。
我有我的'package.json'一個'postinstall'腳本:' 「腳本」:{ 「安裝後」:」。/node_modules/brunch/bin/brunch build --production「 }' – Alex