小编pho*_*rtx的帖子

通过要求gem:path或:git来实现LoadError

我在这里遇到了一个非常奇怪的问题.

我在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)

ruby gem bundler rvm

8
推荐指数
1
解决办法
1720
查看次数

Heroku/Git:协议错误:错误的行长字符:错误

当我通过 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)

git heroku

5
推荐指数
1
解决办法
1027
查看次数

如何设置ember引擎?

我已经创建了一个独立的路由引擎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('...');在引擎中放置一个 …

javascript node.js ember.js ember-engines

2
推荐指数
1
解决办法
1676
查看次数

如何在 MacOS 上通过 asdf-php 插件安装 PHP 7.2.18

我正在尝试通过asdf-php 插件安装 PHP 7.2 。

我看到很多缺少库的错误消息(openssl、readline、zlib,...)。

php macos asdf-vm

0
推荐指数
1
解决办法
2683
查看次数

标签 统计

asdf-vm ×1

bundler ×1

ember-engines ×1

ember.js ×1

gem ×1

git ×1

heroku ×1

javascript ×1

macos ×1

node.js ×1

php ×1

ruby ×1

rvm ×1