Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Heroku部署Gulp+;指南针在样板阶段不工作_Heroku_Gulp_Compass - Fatal编程技术网

Heroku部署Gulp+;指南针在样板阶段不工作

Heroku部署Gulp+;指南针在样板阶段不工作,heroku,gulp,compass,Heroku,Gulp,Compass,我使用的是来自的Gulp样板和来自的buildpack。无论如何,我只想部署干净的样板文件,而不需要这样的代码。我认为只需通过heroku buildpacks:add${url}添加buildpack就可以了。它不起作用,给了我输出: C:\Users\Dawid\Desktop\Harvest>git push heroku master Counting objects: 541, done. Delta compression using up to 8 threads. Comp

我使用的是来自的Gulp样板和来自的buildpack。无论如何,我只想部署干净的样板文件,而不需要这样的代码。我认为只需通过heroku buildpacks:add${url}添加buildpack就可以了。它不起作用,给了我输出:

C:\Users\Dawid\Desktop\Harvest>git push heroku master
Counting objects: 541, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (245/245), done.
Writing objects: 100% (541/541), 147.00 KiB | 0 bytes/s, done.
Total 541 (delta 261), reused 532 (delta 260)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Fetching custom git buildpack... done
remote: -----> Node.js app detected
remote:
remote:        PRO TIP: Specify a node version in package.json
remote:        See https://devcenter.heroku.com/articles/nodejs-support
remote:
remote: -----> Defaulting to latest stable node: 0.12.3
remote: -----> Downloading and installing node
remote: -----> Exporting config vars to environment
remote: -----> Installing dependencies
remote:        npm WARN package.json YourProject@0.0.1 No repository field.
remote: -----> Cleaning up node-gyp and npm artifacts
remote: -----> Procfile not found and npm start script is undefined
remote:
remote:        PRO TIP: Create a Procfile or specify a start script in package.j
son
remote:        See https://devcenter.heroku.com/articles/nodejs-support
remote:
remote: -----> Installing Sass / Compass / Haml
remote: WARNING:  You don't have /tmp/build_a4c003166016ef188ee84e9068b95aec/.ge
m/ruby/2.2.0/bin in your PATH,
remote:           gem executables will not run.
remote: Successfully installed sass-3.4.14
remote: 1 gem installed
remote: WARNING:  You don't have /tmp/build_a4c003166016ef188ee84e9068b95aec/.ge
m/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.8
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.14
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
remote: WARNING:  You don't have /tmp/build_a4c003166016ef188ee84e9068b95aec/.ge
m/ruby/2.2.0/bin in your PATH,
remote:           gem executables will not run.
remote: Successfully installed tilt-2.0.1
remote:
remote: HEADS UP! Haml 4.0 has many improvements, but also has changes that may
break
remote: your application:
remote:
remote: * Support for Ruby 1.8.6 dropped
remote: * Support for Rails 2 dropped
remote: * Sass filter now always outputs <style> tags
remote: * Data attributes are now hyphenated, not underscored
remote: * html2haml utility moved to the html2haml gem
remote: * Textile and Maruku filters moved to the haml-contrib gem
remote:
remote: For more info see:
remote:
remote: http://rubydoc.info/github/haml/haml/file/CHANGELOG.md
remote:
remote: Successfully installed haml-4.0.6
remote: 2 gems installed
remote: -----> Caching ruby gems directory for future builds
remote: -----> Found Gulpfile
remote: -----> Running gulp heroku: task
remote: /tmp/buildpack_a4c003166016ef188ee84e9068b95aec/bin/compile: line 168: /
tmp/build_a4c003166016ef188ee84e9068b95aec/node_modules/.bin/gulp: No such file
or directory
remote:
remote:  !     Push rejected, failed to compile Node.js app
remote:
remote: Verifying deploy...
remote:
remote: !       Push rejected to calm-badlands-5771.
remote:
To https://git.heroku.com/calm-badlands-5771.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/calm-badlands-5771.gi
t'
C:\Users\Dawid\Desktop\Harvest>git-push-heroku-master
计数对象:541,完成。
增量压缩最多使用8个线程。
压缩对象:100%(245/245),完成。
写入对象:100%(541/541),147.00kib | 0字节/秒,完成。
总计541(增量261),重复使用532(增量260)
远程:正在压缩源文件。。。完成。
远程:建筑源:
远程:
远程:-->正在获取自定义git buildpack。。。完成
远程:-->Node.js应用程序检测到
远程:
remote:PRO提示:在package.json中指定节点版本
遥控器:参见https://devcenter.heroku.com/articles/nodejs-support
远程:
远程:-->默认为最新稳定节点:0.12.3
远程:-->下载和安装节点
远程:-->将配置变量导出到环境
远程:-->安装依赖项
远程:npm WARN package.jsonYourProject@0.0.1没有存储库字段。
远程:-->清理节点gyp和npm工件
远程:-->Procfile未找到,npm启动脚本未定义
远程:
远程:PRO提示:在package.j中创建一个Procfile或指定一个启动脚本
儿子
遥控器:参见https://devcenter.heroku.com/articles/nodejs-support
远程:
远程:-->安装Sass/Compass/Haml
远程:警告:您没有/tmp/build_a4c003166016ef188ee84e9068b95aec/.ge
m/ruby/2.2.0/bin在您的路径中,
远程:gem可执行文件将不会运行。
远程:已成功安装sass-3.4.14
远程:安装了1个gem
远程:警告:您没有/tmp/build_a4c003166016ef188ee84e9068b95aec/.ge
m/ruby/2.2.0/bin在您的路径中,
远程:gem可执行文件将不会运行。
远程:构建本机扩展。这可能需要一段时间。。。
远程:已成功安装ffi-1.9.8
远程:已成功安装rb-inotify-0.9.5
远程:已成功安装rb-fsevent-0.9.5
远程:已成功安装chunky_png-1.3.4
远程:已成功安装sass-3.4.14
远程:已成功安装compass-import-once-1.0.5
远程:已成功安装compass-core-1.0.3
遥控器:指南针是慈善软件。如果你喜欢它,请代表我们捐款
在http://umdf.org/compass 谢谢
远程:已成功安装compass-1.0.3
远程:安装了8个gems
远程:警告:您没有/tmp/build_a4c003166016ef188ee84e9068b95aec/.ge
m/ruby/2.2.0/bin在您的路径中,
远程:gem可执行文件将不会运行。
远程:已成功安装tilt-2.0.1
远程:
遥控器:小心!HAML4.0有许多改进,但也有可能会发生的变化
打破
远程:您的应用程序:
远程:
远程:*不再支持Ruby 1.8.6
远程:*已放弃对Rails 2的支持
远程:*Sass筛选器现在始终输出标记
远程:*数据属性现在是连字符的,而不是下划线
远程:*html2haml实用程序已移动到html2haml gem
远程:*纺织和Maruku过滤器移到haml contrib gem
远程:
远程:有关更多信息,请参阅:
远程:
远程:http://rubydoc.info/github/haml/haml/file/CHANGELOG.md
远程:
远程:已成功安装haml-4.0.6
远程:安装了2个gems
远程:-->缓存ruby gems目录以供将来构建
远程:-->找到Gulpfile
远程:-->正在运行gulp heroku:任务
远程:/tmp/buildpack_a4c003166016ef188ee84e9068b95aec/bin/compile:第168行:/
tmp/build_a4c003166016ef188ee84e9068b95aec/node_modules/.bin/gulp:没有这样的文件
或目录
远程:
遥控器:!推送被拒绝,未能编译Node.js应用程序
远程:
远程:正在验证部署。。。
远程:
遥控器:!拒绝推送至calm-badlands-5771。
远程:
到https://git.heroku.com/calm-badlands-5771.git
! [远程拒绝]主机->主机(拒绝预接收挂钩)
错误:无法将某些引用推送到'https://git.heroku.com/calm-badlands-5771.gi
不

您在Heroku上安装的ruby/compass必须已过期。为了让compass正常工作,我不得不将我的版本更新到2.2.0,但我也在为Grunt NodeJS compass使用自定义构建包

你可以看一下 文件 第153行 导出GEM\u HOME=$build\u dir/.GEM/ruby/2.2.0


确保GEM_HOME变量指向ruby 2.2.0目录。

为什么compass期望的正是2.2.0版本?我猜compass也更新了,因此更新了它的依赖项要求