2023-08-03 18:07:27 -07:00
|
|
|
development:
|
2023-08-03 18:07:27 -07:00
|
|
|
primary:
|
|
|
|
adapter: mysql2
|
Oops, fix bugs in dev container setup!
I missed two things:
1) `rake` wasn't available in the path (surprising but ok!), so I replaced it with the more modern and more portable `bin/rails` invocation.
2) Without specifying a `host`, Rails was trying to connect with the database over a socket instead of over a port. Here, we tell it where to actually connect!
I think I'll need to make some tweaks here, since this isn't compatible with my _own_ local setup—maybe I'll revert `database.yml`, and have the dev container use the `DATABASE_URL` environment variable to override it?
But whatever, this is working for now, and that's exciting to me!
Note: On my machine, the install step hangs for a loooong time, to the point where I usually give up. On Codespaces, it also took a while at the same step (`Installing devise-encrpytable`), but eventually got through it. Maybe on my machine it would work if I'm more patient? Idk! But it's good to see it working on something!!
2023-10-25 17:04:20 -07:00
|
|
|
host: db
|
2023-08-03 18:07:27 -07:00
|
|
|
database: openneo_impress
|
2023-08-29 11:39:12 -07:00
|
|
|
username: impress_dev
|
|
|
|
password: impress_dev
|
2023-08-03 18:07:27 -07:00
|
|
|
pool: 5
|
|
|
|
variables:
|
|
|
|
sql_mode: TRADITIONAL
|
|
|
|
|
|
|
|
openneo_id:
|
|
|
|
adapter: mysql2
|
Oops, fix bugs in dev container setup!
I missed two things:
1) `rake` wasn't available in the path (surprising but ok!), so I replaced it with the more modern and more portable `bin/rails` invocation.
2) Without specifying a `host`, Rails was trying to connect with the database over a socket instead of over a port. Here, we tell it where to actually connect!
I think I'll need to make some tweaks here, since this isn't compatible with my _own_ local setup—maybe I'll revert `database.yml`, and have the dev container use the `DATABASE_URL` environment variable to override it?
But whatever, this is working for now, and that's exciting to me!
Note: On my machine, the install step hangs for a loooong time, to the point where I usually give up. On Codespaces, it also took a while at the same step (`Installing devise-encrpytable`), but eventually got through it. Maybe on my machine it would work if I'm more patient? Idk! But it's good to see it working on something!!
2023-10-25 17:04:20 -07:00
|
|
|
host: db
|
2023-08-03 18:07:27 -07:00
|
|
|
database: openneo_id
|
2023-08-29 11:39:12 -07:00
|
|
|
username: impress_dev
|
|
|
|
password: impress_dev
|
2023-08-03 18:07:27 -07:00
|
|
|
pool: 2
|
|
|
|
variables:
|
|
|
|
sql_mode: TRADITIONAL
|
2023-08-06 18:03:06 -07:00
|
|
|
migrations_paths: db/openneo_id_migrate
|
2023-08-03 18:07:27 -07:00
|
|
|
|
|
|
|
production:
|
2023-08-03 18:07:27 -07:00
|
|
|
primary:
|
|
|
|
url: <%= ENV['DATABASE_URL_PRIMARY'] %>
|
|
|
|
variables:
|
|
|
|
sql_mode: TRADITIONAL
|
|
|
|
|
|
|
|
openneo_id:
|
|
|
|
url: <%= ENV['DATABASE_URL_OPENNEO_ID'] %>
|
|
|
|
variables:
|
|
|
|
sql_mode: TRADITIONAL
|
2023-08-06 18:03:06 -07:00
|
|
|
migrations_paths: db/openneo_id_migrate
|