我在这里遇到了一个非常奇怪的问题.
我在github上分叉了一个gem进行一些修改,在我的本地机器上克隆了我的repo,进行了更改并更改了另一个项目的Gemfile以从我的本地存储库中获取gem以进行测试.不幸的是,我在ruby脚本中需要gem时遇到LoadError.
rvm current => ruby-1.9.3-p448
ruby --version => ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-linux]
bundle --version => Bundler version 1.3.5
Run Code Online (Sandbox Code Playgroud)
我的Gemfile的内容:
source 'http://rubygems.org
gem 'steps', :path => "/home/benny/workspace/steps"
Run Code Online (Sandbox Code Playgroud)
捆绑输出:
$ bundle --no-cache
Resolving dependencies...
Using colored (1.2)
Using highline (1.6.19)
Using steps (1.0.2) from source at /home/benny/workspaces/steps
Using bundler (1.3.5)
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
$ bundle show steps
/home/benny/workspaces/steps
Run Code Online (Sandbox Code Playgroud)
通过irb测试工作正常:
$ bundle exec irb
1.9.3-p392 :001 > …Run Code Online (Sandbox Code Playgroud) 当我通过 git 部署到 heroku 时,slug 构建成功完成,但之后我收到一个 git 协议错误:
$ git push heroku -f v0.0.20:refs/heads/master
(...)
remote: -----> Compressing...
remote: Done: 55.3M
remote: -----> Launching...
remote: Released v40
remote: https://....herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy... done.
fatal: protocol error: bad line length character: erro
fatal: The remote end hung up unexpectedly
error: failed to push some refs to 'https://git.heroku.com/....git'
Run Code Online (Sandbox Code Playgroud)
我已经尝试通过 SSH 手动进入 git 服务器进行调试,但没有成功,由于 SSL,tcpdump 毫无用处。
ssh git@heroku.com "git-upload-pack ....git" 不产生任何可疑:
00c93a701c509d5730ba92e91463707699721929d477 HEADmulti_ack thin-pack side-band side-band-64k ofs-delta shallow no-progress …Run Code Online (Sandbox Code Playgroud) 我已经创建了一个独立的路由引擎ember-engines 0.4.0,ember-cli 2.10.0.
如果我调用引擎索引route(/thingy/),我会收到此错误:
Assertion Failed: Asset manifest does not list any available bundles.
消费App router.js:
this.mount('thingy-frontend', { as: 'thingy', path: 'thingy' });
Run Code Online (Sandbox Code Playgroud)
引擎应用routes.js:
this.route('index', { path: '/' });
Run Code Online (Sandbox Code Playgroud)
通过node_modules/消费ember-cli应用程序目录中的符号链接"安装"引擎.(见这里原因).
只是为了好玩,我试图改变路线,以测试是否有效......
消费App router.js:
this.mount('thingy-frontend', { as: 'thingy' });
Run Code Online (Sandbox Code Playgroud)
引擎应用routes.js:
this.route('index', { path: 'new' });
Run Code Online (Sandbox Code Playgroud)
我打电话给/thingy/new了一个UnrecognizedURLError.另外,如果我调用根路径,我会得到一个Assertion Failed: Asset manifest does not list any available bundles.
此外,如果我console.log('...');在引擎中放置一个 …
我正在尝试通过asdf-php 插件安装 PHP 7.2 。
我看到很多缺少库的错误消息(openssl、readline、zlib,...)。