2016-08-10 8 views
2

У меня есть this тема, которую я хочу развернуть на герою. Проблема в том, что я не использую nodejs в нем, но во всем учебнике, с которым я сталкивался, используется узел, yaemon и т. Д., Что не является моим делом.Как развернуть угловое приложение gulp для heroku без nodejs

Я попытался создать PROCFILE

web: node app.js 

но было развёртывание ошибки.

remote: 
remote: -----> Node.js app detected 
remote: 
remote: -----> Creating runtime environment 
remote: 
remote:  NPM_CONFIG_LOGLEVEL=error 
remote:  NPM_CONFIG_PRODUCTION=true 
remote:  NODE_ENV=production 
remote:  NODE_MODULES_CACHE=true 
remote: 
remote: -----> Installing binaries 
remote:  engines.node (package.json): unspecified 
remote:  engines.npm (package.json): unspecified (use default) 
remote: 
remote:  Resolving node version (latest stable) via semver.io... 
remote:  Downloading and installing node 5.11.1... 
remote:  Using default npm version: 3.8.6 
remote: 
remote: -----> Restoring cache 
remote:  Skipping cache restore (new runtime signature) 
remote: 
remote: -----> Building dependencies 
remote:  Installing node modules (package.json) 
remote: 
remote:  > [email protected] postinstall /tmp/build_5d79cad1abda92d62d5cf18 
0cf8e22c1 
remote:  > bower install 
remote: 
remote:  sh: 1: bower: not found 
remote: 
remote:  npm ERR! Linux 3.13.0-91-generic 
remote:  npm ERR! argv "/tmp/build_5d79cad1abda92d62d5cf180cf8e22c1/.herok 
u/node/bin/node" "/tmp/build_5d79cad1abda92d62d5cf180cf8e22c1/.heroku/node/bin/n 
pm" "install" "--unsafe-perm" "--userconfig" "/tmp/build_5d79cad1abda92d62d5cf18 
0cf8e22c1/.npmrc" 
remote:  npm ERR! node v5.11.1 
remote:  npm ERR! npm v3.8.6 
remote:  npm ERR! file sh 
remote:  npm ERR! code ELIFECYCLE 
remote:  npm ERR! errno ENOENT 
remote:  npm ERR! syscall spawn 
remote:  npm ERR! [email protected] postinstall: `bower install` 
remote:  npm ERR! spawn ENOENT 
remote:  npm ERR! 
remote:  npm ERR! Failed at the [email protected] postinstall script 'bower 
install'. 
remote:  npm ERR! Make sure you have the latest version of node.js and npm 
installed. 
remote:  npm ERR! If you do, this is most likely a problem with the blur_a 
dmin package, 
remote:  npm ERR! not with npm itself. 
remote:  npm ERR! Tell the author that this fails on your system: 
remote:  npm ERR!  bower install 
remote:  npm ERR! You can get information on how to open an issue for this 
project with: 
remote:  npm ERR!  npm bugs blur_admin 
remote:  npm ERR! Or if that isn't available, you can get their info via: 
remote:  npm ERR!  npm owner ls blur_admin 
remote:  npm ERR! There is likely additional logging output above. 
remote: 
remote:  npm ERR! Please include the following file with any support reque 
st: 
remote:  npm ERR!  /tmp/build_5d79cad1abda92d62d5cf180cf8e22c1/npm-debu 
g.log 
remote: 
remote: -----> Build failed 
remote: 
remote:  We're sorry this build is failing! You can troubleshoot common is 
sues here: 
remote:  https://devcenter.heroku.com/articles/troubleshooting-node-deploy 
s 
remote: 
remote:  Some possible problems: 
remote: 
remote:  - Node version not specified in package.json 
remote:  https://devcenter.heroku.com/articles/nodejs-support#specifying-a 
-node-js-version 
remote: 
remote:  - Bower may not be tracked in package.json 
remote:  https://devcenter.heroku.com/articles/troubleshooting-node-deploy 
s#ensure-you-aren-t-relying-on-untracked-dependencies 
remote: 
remote:  Love, 
remote:  Heroku 
remote: 
remote: !  Push rejected, failed to compile Node.js app. 
remote: 

Может ли кто-нибудь помочь?

Благодаря

+0

может отправить сообщение об ошибке –

+0

@SaE обновил вопрос – codegasmer

ответ

0

Кажется, что вы не добавили «беседку» как зависимость. Проверьте файл package.json. В разделе «зависимости» вам понадобится запись «беседка». Что-то вроде:

"dependencies": { 
    "bower": "^1.8.0", 
    } 

Может быть, у вас уже есть становой имеет devDepencendy, но и для Heroku вы должны поместить его этот другой раздел тоже. Вы также можете проверить этот link, который имеет другой способ сделать это. Надеюсь, это поможет!

Смежные вопросы