gpt4 book ai didi

ruby-on-rails - 在服务器(vps)ubuntu 16.04 中安装 ruby​​ on rails 时出错

转载 作者:太空宇宙 更新时间:2023-11-04 12:13:58 24 4
gpt4 key购买 nike

美好的一天,今天我在我的服务器上安装了 ruby​​ on rails,但是在执行我的应用程序时出现错误:

rails new testingApp
cd testingApp
rails server

// Appears in my console(Putty) a error.

错误是:

Could not find gem 'puma (~> 3.7)' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.

我不明白错误的原因,我需要这方面的帮助。

我学会了安装 Ruby 和来自 youtube 的补充: https://youtu.be/ml_-nWq0LEg

用于安装的命令有:

Ruby installation: sudo apt-get install build-essential patch ruby-dev zlib1g-dev liblzma-dev libsqlite3-dev

Rails installation: sudo gem install rails –v 5.0.0.1

NodeJS installation: sudo apt-get install nodejs

我的服务器有技术要求:

  • Ubuntu 16.04。
  • 256 MB 内存。
  • 0.5 核心。

对不起,我的英语很糟糕。

感谢您阅读我的帖子并提供帮助。 This is error in my console

最佳答案

如果你的项目是在输入命令后创建的

rails new testingApp

然后就可以了,但是需要安装所有的依赖

cd testingApp
#=> then run bundler
bundle install
#=> if bundle run properly then run
rails server or rails s

希望会成功

关于ruby-on-rails - 在服务器(vps)ubuntu 16.04 中安装 ruby​​ on rails 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47958709/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com