我用這個Heroku的Buildpack編譯我最近的項目在Heroku https://github.com/gcpantazis/heroku-buildpack-php-gruntjsHeroku的Buildpack與Apache,PHP和咕嚕
它的偉大工程與節點版本0.8.x.但是,當我更改爲Node版本0.10.x並將代碼推送到heroku時,它向我顯示此錯誤「無法安裝-g grunt-cli - 使用npm進行安全性依賴關係」。
任何幫助,將不勝感激。
我用這個Heroku的Buildpack編譯我最近的項目在Heroku https://github.com/gcpantazis/heroku-buildpack-php-gruntjsHeroku的Buildpack與Apache,PHP和咕嚕
它的偉大工程與節點版本0.8.x.但是,當我更改爲Node版本0.10.x並將代碼推送到heroku時,它向我顯示此錯誤「無法安裝-g grunt-cli - 使用npm進行安全性依賴關係」。
任何幫助,將不勝感激。
您可以使用heroku-buildpack-multi組合常規PHP和Node.js構建包。例如:http://heroku-multipack-nodejs-php-ex.herokuapp.com
我們用兩個buildpacks,使我們能夠編譯前端資產咕嚕
$ heroku buildpacks:set heroku/nodejs Buildpack set. Next release on your-application will use heroku/nodejs. Run git push heroku master to create a new release using this buildpack. $ heroku buildpacks:set heroku/php --index 2 Buildpack set. Next release on your-application will use: 1. heroku/nodejs 2. heroku/php Run git push heroku master to create a new release using these buildpacks.