2012-07-16 2 views
2

나는 Heroku에 배포하려고 시도하는 Node.js 응용 프로그램이 있습니다. 그러나 Heroku는 Ruby 응용 프로그램이라고 생각하는 것 같습니다. Gemfile (명령 줄 제어를위한 Heroku 보석 자체뿐만 아니라 일부 사용자 정의 스크립트 등을 포함하는 개인 보석이 있기 때문일 수 있습니다). .slugignore에 Gemfile과 Gemfile.lock을 추가했지만 (Heroku's Slug Compiler article에서 논의 됨), 앱은 여전히 ​​Ruby 앱으로 감지됩니다.Heroku가 Node.js로 응용 프로그램을 처리하도록 강요

$ git push heroku master 
Total 0 (delta 0), reused 0 (delta 0) 

-----> Heroku receiving push 
-----> Ruby app detected 
-----> Installing dependencies using Bundler version 1.2.0.pre 
     Running: bundle install --without development:test --path vendor/bundle --binstubs bin/ --deployment 

맞춤 보석이 비공개 저장소이기 때문에 번들이 실패하고 더 이상 얻을 수 없습니다. 나는 Heroku가이 앱을 Node.js 앱으로 취급하고 Procfile을 사용하여 웹 앱을 시작하도록 할 수있는 방법을 찾을 수 없습니다. 아무도 내가 어떻게 할 수있는 아이디어가 있습니까?

답변

1

잘 쓰레기, 나는 충분히 멀리 보았음에 틀림없지 않는다. 이 질문에 이미 on Stack Overflow을 묻습니다. 대답은 사용자 정의 Node.js 빌드 팩 인 la :

heroku config:add BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-nodejs.git 
관련 문제