我正在尝试将我的代码部署到AWS Beanstalk并收到此错误.我研究说可能是版本的数量超过500,所以我删除了很多版本.但是,我仍然得到这个错误.
eb deploy
ERROR: No Application Version named 'v0_9_2-76-gf5a4' found.
Run Code Online (Sandbox Code Playgroud)
我也试过了
git aws.push
Error: Failed to create the AWS Elastic Beanstalk application version
Run Code Online (Sandbox Code Playgroud)
编辑:尝试eb deploy --debug我现在得到:
实例:i-2ad238d5模块:AWSEBAutoScalingGroup ConfigSet:null命令在实例上失败.返回码:1输出:构建期间发生错误:命令挂钩失败.脚本/opt/elasticbeanstalk/hooks/appdeploy/pre/10_bundle_install.sh失败,返回码为18
ebcli.objects.exceptions.ServiceError:更新环境操作已完成,但有错误.有关更多信息,请参阅故障排除文档
如何获得URL的完整路径,如下所示
uri = URI("http://foo.com/posts?id=30&limit=5#time=1305298413")
Run Code Online (Sandbox Code Playgroud)
我只是想 posts?id=30&limit=5#time=1305298413
我试过uri.path并且返回/发布,ui.query返回'id = 30&limit = 5'
我正在 Rails 项目中执行文件 app.rb 并尝试使用 byebug gem 单步执行它,但收到一条错误消息,指出“byebug”是未定义的局部变量。我使用命令“ruby app.rb”运行代码。通过命令行以这种方式执行时,是否有其他方法可以单步执行 ruby 文件?
$ bundle install
Fetching gem metadata from https://rubygems.org/.....
Resolving dependencies...
Using byebug 6.0.2
Installing pg 0.18.3
Using bundler 1.6.2
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
$ ruby app.rb
app.rb:17:in `block in <main>': undefined local variable or method `byebug' for main:Object (NameError)
from app.rb:15:in `glob'
from app.rb:15:in `<main>'
Run Code Online (Sandbox Code Playgroud)