-1

I am beginner of Ruby on Rails. I made first demo project and run by these commands

rails new demo
rails server

And It does work well. I haven't installed any apache or mysql server like XAMPP, but my demo project worked. Now I want to know if ruby on rails support database server by itself. If not, should I install new database server like XAMPP?

Nomura Nori
  • 4,689
  • 8
  • 47
  • 85

1 Answers1

1

check your config/database.yml you will see the default is using sqllite which is installed in your system that is why the system up, and you can see in your gem file that sqllite3 gem is exist which is the adapter that connect you to the database, once you changed the configuration for database.yml to use postgres for example and add the pg gem the app will fail to start as it couldn't connect to postgres as its not installed or its not up in your machine

check also this answer, it will clear a lot for you Convert a Ruby on Rails app from sqlite to MySQL?

Community
  • 1
  • 1
mohamed-ibrahim
  • 10,837
  • 4
  • 39
  • 51