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

Ask A Question

Notifications

You’re not receiving notifications from this thread.

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

Arnas Klasauskas asked in Servers

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.

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 33,399+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.