Skip to content

Instantly share code, notes, and snippets.

@Gourav741
Created April 2, 2021 08:22
Show Gist options
  • Save Gourav741/0353b73c3ee7edd01e72f931e8563090 to your computer and use it in GitHub Desktop.
Save Gourav741/0353b73c3ee7edd01e72f931e8563090 to your computer and use it in GitHub Desktop.
This file might help you in the problems that you may face to setup Ruby on Rails project after dual boot installation of ubuntu(linux) on your local machine(windows based)

After the successful installation of Ubuntu(or other linux distro) on your windows machine, you may encounter a lot many issues setting up the Ruby on Rails project and it could be any or all of the below mentioned one:

  • Error: Could not find database.yml file / issue related to postgres In this case check that you have installed postgresql properly or not on your machine first. Once after confirmation, u may still face the same issue then u may have to find 'pg_hba.conf' file and follow the instructions given in this page https://stackoverflow.com/questions/10845998/i-forgot-the-password-i-entered-during-postgres-installation

    We may have to replace the word 'peer' everywhere inside 'pg_hba.conf' file with 'trust' and then save it, restart the psql service and then try to start the rails server again. But before that we have to find the location of 'pg_hba.conf' file. This link might be helpful for the same - https://askubuntu.com/questions/256534/how-do-i-find-the-path-to-pg-hba-conf-from-the-shell

    We might also have to go to database.yml file & set the 'username:postgresql' & 'password:postgresql'. And in the end you might have to start the postgresql service with 'sudo service postgresql start' command

  • Error: Could not find Redis server Please check that you have installed the redis properly on your machine. After confirmation, u may just have to start the service with 'redis-server' command

    (other issues to add...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment