我試圖用BUILDPACK_URL
。我搜索了我的問題的解決方案的一個節點JS應用程序部署到Heroku的,但沒有得到我的問題任何合適的答案。如何節點JS與gruntfile應用程序部署到Heroku的
這是程序我也跟着:
heroku create myapp
heroku config:add BUILDPACK_URL='https://github.com/stephanmelzer/heroku-buildpack-nodejs-grunt-compass.git'
然後我承諾我的變化,然後:
git push heroku master
運行良好grunt
任務started.I安裝compass
寶石與繁重的工作之前。 當Heroku的嘗試開始咕嚕任務,我得到以下錯誤:
`remote: -----> Installing Compass
remote: WARNING: You don't have /tmp/build_2f866d4293332f62a9a9aa576a411628/.gem/ruby/2.2.0/bin in your PATH,
remote:gem executables will not run.
`
的警告後,我得到了羅盤成功安裝
remote: Building native extensions. This could take a while...
remote: Successfully installed ffi-1.9.10
remote: Successfully installed rb-inotify-0.9.5
remote: Successfully installed rb-fsevent-0.9.5
remote: Successfully installed chunky_png-1.3.4
remote: Successfully installed sass-3.4.16
remote: Successfully installed compass-import-once-1.0.5
remote: Successfully installed compass-core-1.0.3
remote: Compass is charityware. If you love it, please donate on our behalf at http://umdf.org/compass Thanks!
remote: Successfully installed compass-1.0.3
remote: 8 gems installed
然後Heroku的嘗試運行後留言`咕嚕」。在這裏,在這一點上我得到了波紋管的錯誤:
remote: -----> Running grunt heroku:production task
remote: Running "env:src" (env) task
remote:
remote: Running "clean:dist" (clean) task
remote:
remote: Running "compass:dist" (compass) task
remote: Warning: You need to have Ruby and Compass installed and in your system PATH for this task to work. More info: https://github.com/gruntjs/grunt-contrib-compass Use --force to continue.
remote:
remote: Aborted due to warnings.
我不知道爲什麼它不爲已經安裝在我的本地機器compass
寶石發現PATH
。
which compass
result: /home/username/.rvm/gems/ruby-2.2.0-preview1/bin/compass
可以任何一個告訴如何克服這個問題,並正確設置寶石的PATH
變量。
非常感謝。
嘗試'Heroku的配置:添加BUILDPACK_URL = HTTPS://github.com/ [帳戶]/Heroku的-buildpack-multi.git'相反,看看是否有效。 [從這裏](http://stackoverflow.com/questions/15890076/how-to-setup-gruntfile-to-use-compass-sass-on-heroku)。 – Andy
我曾試過,但沒有運氣。 非常感謝您的回覆。 – monsur