我正在尝试创建一个新的Rails应用程序,并在Linux上进行新的安装。当我执行
rails new appname -d postgresql
我收到以下错误
run bundle install --local
/usr/bin/ruby2.3: No such file or directory -- /usr/bin/bundle (LoadError)
run bundle exec spring binstub --all
/usr/bin/ruby2.3: No such file or directory -- /usr/bin/bund
你好,开发人员,我在编写命令时遇到了麻烦:
包exec rake资产:预编译
命令返回我:
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin
我的创业板文件包括:
group :production do
gem 'pg', '0.17.1'
gem 'rails_12factor', '0.0.2'
gem 'puma', '2.11.1'
end
当我发出bundle install命令时,在最后得到行
"Your bundle is complete!
Gems in the group production were not installed.
Use `bundl
我正在尝试在linux映像上安装 vim插件。
FROM ubuntu:22.04
# minimal nix stuff ...
RUN apt-get update
RUN apt-get install git -y
RUN apt-get install vim -y
RUN apt-get install curl -y
# pathogen stuff ...
RUN mkdir -p ~/.vim/autoload
RUN mkdir -p ~/.vim/bundle
RUN curl -LSso ~/.vim/autoload/pathogen.vim https://tp
我在修改一个用symfony框架做的项目。发生了以下错误。
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
我正在尝试将现有的Rails应用程序部署到Heroku,将Ruby版本从2.7.1升级到3.1.2。还将bundler更新为2.3.25,这似乎得到了的支持。
除了POST部署步骤(应用程序被部署到Heroku,但返回一个导致管道失败的错误)之外,每个程序都运行平稳(构建、测试等)。
GitLab CI日志:
Released v819
https://my-app-example.herokuapp.com/ deployed to Heroku
Running "bundle exec rails db:migrate"
Already up to dat
我试图运行中间人,但得到了以下错误:
$ middleman
WARN: Unresolved specs during Gem::Specification.reset:
thor (< 2.0, >= 0.15.2)
multi_json (~> 1.0)
rb-inotify (>= 0.9)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
Could not find i18n-0.6.1 in any of the sources
R
我不知道发生了什么,但我开始发现这个错误:
c:\Sites\Project>ruby bin/rails server
Your bundle is locked to rake (12.0.0), but that version could not be found in any of the sources listed in your Gemfile.
If you haven't changed sources, that means the author of rake (12.0.0) has removed it.
You'll need to up
最近,我将我的Heroku应用程序从Ruby2.3.1升级到了2.4.0,但现在我需要恢复到2.3.1版本。
更新:
我将Gemfile中的版本从2.3.1更改为2.4.0。一切都进行得很顺利,但我需要回到2.3.1,因为2.4.0特有的问题
恢复:
我尝试将Gemfile中的版本更改为Gemfile(作为ruby "2.3.1"),但它只是抛出了绑定错误Your Ruby version is 2.4.0, but your Gemfile specified 2.3.1
如何将我的Ruby版本更改为Heroku上的2.3.1?
以下是部署时的错误:
ID yupp
----
-----> Ruby/Rails app detected
-----> Installing dependencies using Bundler version 1.3.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment
You are trying to install in deployment mode after changing
your Gemf
事实上,当从我从git克隆的现有rails应用程序中运行时,所有与gem相关的命令都会产生相同的错误消息。
$ bundle install
Could not find tzinfo-0.3.27 in any of the sources
Run `bundle install` to install missing gems.
$ gem list
Could not find tzinfo-0.3.27 in any of the sources
Run `bundle install` to install missing gems.
$ bundle update
Could
当我尝试执行命令时
rails new blog
我犯了这样的错误
run bundle install
/usr/bin/ruby2.3: No such file or directory -- /usr/share/rubygems-integration/all/gems/bundler-1.12.5/exe/bundle (LoadError)
run bundle exec spring binstub --all
/usr/bin/ruby2.3: No such file or directory -- /usr/share/rubygems-in
当涉及到ruby时,我是一个彻头彻尾的笨蛋,我正在努力解决一个构建问题。
在一个包含两个gem的目录中,其中一个依赖于另一个,在运行之前,依赖关系看起来是正常的。下面是一个测试用例:
下面是当我运行它的demo.sh时发生的事情:
+ cd subdemo
+ bundle install
Using rake 10.5.0
Using bundler 1.16.5
Using minitest 5.11.3
Using subdemo 0.1.0 from source at `.`
Bundle complete! 4 Gemfile dependencies, 4 gems now i
这里有一个麻烦:在我的远程服务器命令中,gem list显示:
some gems
minitest (4.7.5)
....
bundle show minitest命令显示:
/var/lib/gems/1.9.1/gems/minitest-4.7.5
bundle show rails显示相同的目录
bundle -v - 1.6.2 (最新版本)
但我有个错误:Could not find minitest-4.7.5 in any of the sources (Bundler::GemNotFound)
我所做的步骤
再次删除Gemfile.lock和bundle ins