我有rails应用程序Ubuntu18.04。bundle install运行成功,但当我运行rake db:setup时,它会显示
耙中止!KEYERROR:找不到键:“URL_HOST”/var/www/myapp/code/config/environments/production.rb:71:infetch'/var/www/myapp/code/config/environments/production.rb:71:in
block in'/home/myappuser/.rvm/gems/ruby-2.5.0/gems/railties-4.2.11.1/lib/rails/railtie.rb:210:inar/www/myapp/code/config/environments/production.rb:3:在
中的load_dependency'/home/myappuser/.rvm/gems/ruby-2.5.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:274:在
require'/home/myappuser/.rvm/gems/ruby-2.5.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies.:在中的require'/home/myappuser/.rvm/gems/ruby-2.5.0/gems/railties-4.2.11.1/lib/rails/engine.rb:598:in
“/home/myappuser/.rvm/gems/ruby-2.5.0/gems/ruby-2.5.0/gems/railties-4.2.11.1/lib/railties-4.2.11.1”中的块(2个级别)11.1/lib/rails/initializable.rb:30:在instance_exec'/home/myappuser/.rvm/gems/ruby-2.5.0/gems/railties-4.2.11.1/lib/rails/initializle.rb:30:在
运行'/home/myappuser/.rvm/gems/ruby-2.5.0/gems/railties-2.5.0/gems/railties/initializle.rb:55:在block in run_initializers alizable.rb:44:在
中每个'/home/myappuser/.rvm/gems/ruby-2.5.0/gems/railties-4.2.11.1/lib/rails/initializable.rb:44:在tsort_each_child'/home/myapp/rvm/gems/ruby-2.5.0/gems/railties-4.2.11.1/lib/rails/initializable.rb:54:在
run_initializers'/home/myappuser/.rvm/gems/ruby-2.5.0/gems/railties-4.2.11.1/lib/rails/application.rb:352:ininitialize!‘/var/www/myapp/code/config/environment.rb:5:in
“/home/myappuser/.rvm/gems/ruby-2.5.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies”.rb:274:in“/home/myappuser/.rvm/gems/ruby-2.5.0/gems/active_support/dependencies”.rb:274:in
“require”load_dependency'/home/myappuser/.rvm/gems/ruby-2.5.0/gems/activesupport-4.2.11.1/lib/active_support/dependencies.rb:274:in
require_environment'/home/myappuser/.rvm/gems/ruby-2.5.0/gems/railties-4.2.11.1/lib/dependencies.rb:328:inrequire_environment!‘/home/myappuser/.rvm/gems/ruby-2.5.0/gems/railties-4.2.11.1/lib/rails/application.rb:457:in
block in run_tasks_blocks'/home/myappuser/.rvm/gems/ruby-2.5.0/gems/rake-13.0.0/exe/rake:27:in:在''tasks:TOP=>db:setup=>db:schema:load_if_ruby=>environment中(请参阅通过使用--trace运行任务的完整跟踪)
需要帮助
似乎缺少URL_HOST的一些配置设置。
问题内容: 当我尝试在nodejs服务器上安装时间时,出现以下错误: 问题答案: 您正在使用哪个操作系统? 如果是Ubuntu,则需要安装build-essential软件包: 然后尝试再次安装该软件包。
我试着在我的第一个ruby项目中捆绑安装,做了一个教程,所以我对所有这些编码内容都很陌生。我遵循了教程的一部分,一切都很顺利,直到我遇到以下问题: Gem::RemoteFetcher::FetchError:SSL\u connect返回=1 errno=0 state=SSLv3读取服务器证书B:证书验证失败https://rubygems.org/gems/rake-10.4.2安装rake
我无法安装哟从npm我发现这些错误,而运行安装哟,我做了环境变量的所有路径,但仍然得到错误,我也清除了缓存并重新安装nodejs,重启我的电脑,但仍然得到这个错误 $npm安装--全局yo npm警告已弃用npmconf@2.1.2:此程序包已重新集成到npm中,并且现在对于npm C:\Users\hp\AppData\Roaming\npm\yo已过期- 产卵-sync@1.0.15posti
我已经克隆了flatterrepo并安装了androidsdk命令行工具,在中进行了设置。然后,我通过将设置为使意识到的安装。通过
问题内容: 这是我得到的错误 我该怎么解决? 问题答案: 看来你的系统上缺少或安装程序找不到它。确保确实安装了。 例如,在上,你必须安装软件包: 也许不在你的路径中,当你自己编译mysql套件时就是这种情况。 更新:对于最新版本的(截至2018年),它是