-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Database connection during db:seed on host system #7
Comments
Well, i took a look at database.yml and i see it supports DB_HOST, so i can pass installation. Still, i wonder why it's trying to run migrations on host system with host postgresql. During installation in docker i hit:
|
The installer does not support a Docker install currently but PRs are welcome. The generated Dockerfile is for other developers
Of course, you can try running
This is because |
Okay, thank you for the answers! |
The installer assumes there is a PostgreSQL database on The username, password, and database host are not currently configurable but perhaps they should be via installer flags. PRs are welcome! |
Indeed, the database part of this script needs some fixing. I had to manually create, migrate and seed after running it (https://gist.github.com/snoopiesnax/909ba428ea00a782d5fd5695e294faab).
Sounds like that oughta do it! Also, here on OpenBSD we use |
I'm trying to bootstrap thredded with thredded_create_app.
After i noticed how many actions it's trying to do on my host system (updating all gems including rails, which i should do only myself), i decided to dockerize thredded_create_app. After some tries and errors i did it, but stuck at one of the steps.
When thredded_create_app run migrations, it does it on host system. So, before you can use docker for development, somehow you need to install postgresql on your host system.
With all this i come to conclusion - with default options installer is completely unusable. I have to use sqlite option, and then edit it back to postgresql after everything is generated, but that defeats the purpose of all-in-one installer.
What is even more funny, i can't run it with docker-compose because it expects to find database on localhost, while docker-compose gives special hostname to each container.
So, the question is - is it expected behavior of installer? it's completely unusable with default options?
The text was updated successfully, but these errors were encountered: