我是一名初级 Web 开发人员,正在尝试开发我的第一个 Ruby on Rails 项目。我正在按照本指南在 render.com 上部署应用程序。
但是,安装rails并按照此命令创建数据库后(我在Ubuntu上):
rails db:create
Run Code Online (Sandbox Code Playgroud)
我在命令窗口中遇到这个问题:
We could not find your database: postgres. Which can be found in the database configuration file located at config/database.yml.
To resolve this issue:
- Did you create the database for this app, or delete it? You may need to create your database.
- Has the database name changed? Check your database.yml config has the correct database name.
To create your database, run:
bin/rails db:create
Couldn't create 'mysite_development' …Run Code Online (Sandbox Code Playgroud)