Skip to main content

How do I create a new rails application with ubuntu and postgresql

Servers • Asked by Arnas Klasauskas

I'm currently trying to create a new rails app. I can easily do this with rails new app --database=postgresql but when I change the database.yml, I'm using the same user for every application for example postgres. Therefore all applications share the same database user.

Then when I try to install a gem in my new application it says, that the gem is already installed.

Therefore I created a new user, but this didn't really work. I can create a new rails app with the new user but it throws erros that I need to to install, bundler, that it cant find the bundle folder and so on.

Do have any guidance on this ? I'm using Ubuntu 18.04 on Windows.


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 22,346+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.