Comments (5)
Hey @rept, thanks for asking about this. You should have the same username and password configured in both your database.yml and your kuby.rb config. In kuby.rb the credentials are used to create a database user so your app can connect when it starts. Kuby rewrites your database.yml, but only to inject the host
field, i.e. it leaves the username
and password
fields alone.
I tried a bunch of different things when developing the database integration feature, and finally settled on this. It's simply too error-prone to do very much with database.yml because your Rails env isn't always available (by design). It's much easier to ask specifically for the database credentials in kuby.rb, although it does add a little more to the configuration.
from kuby-core.
Ok clear! Thanks.
from kuby-core.
Hey @rept, did you recently delete a comment on this issue? If so, did you get a satisfactory answer to your question?
from kuby-core.
@camertron guilty! It was a stupid question. I wondered how I could avoid getting passwords into the database.yml file but I just need to reference the same encrypted key as I do from the kuby.rb
from kuby-core.
@rept gotcha, no problem!
from kuby-core.
Related Issues (20)
- Write docs for authoring providers
- Support for other lang apps HOT 3
- Rollback does not work: undefined method `metadata` HOT 1
- bundle install fails HOT 2
- [Feature Request] Add support for hetzner cloud HOT 1
- Can't deploy HOT 3
- Adding the gem hangs bundler forever HOT 3
- Mutiple hostnames? HOT 2
- Add support for multiple hostnames HOT 6
- Unable to build HOT 4
- [Feature Request] Add support for Citus HOT 3
- [Feature Request] Add support for Openshift HOT 1
- [Feature Request] Please add CloudNativePG as a PostgreSQL db
- Feature Request: support for Google Cloud - GKE as a provider HOT 2
- Kuby for a dockerized project HOT 1
- Cannot load bin/kuby in v0.20.0 HOT 2
- Assets & migration HOT 3
- Allow disabling of automatic migrations
- getkuby.io is down HOT 5
- kuby-core (0.20.1) raise error on dotenv (3.0.1) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kuby-core.