Comments (13)
from rails-ex.
- is handled by sticky sessions at router, so ignore it :)
from rails-ex.
@mfojtik to be clear the default behavior is clientip based routing, but same difference basically.
from rails-ex.
@mfojtik with 1) we are using admin user and admin password for the db connection currently... do we want to reuse those variables for that or create some new ones?
from rails-ex.
@ewolinetz afaik we use ADMIN_USER just in template:
π ~/go/src/github.com/openshift/rails-ex ack 'ADMIN_USER'
openshift/templates/rails-postgresql.json
334: "name": "ADMIN_USERNAME",
We should use it for the app instead of 'openshift' and 'secret'.
from rails-ex.
@mfojtik strange... it looks like that should have been removed. that was remnants of the expression used in the config/database.yaml It has since been replaced with POSTGRESQL_ADMIN_PASSWORD. I would propose that they are instead renamed to something like APPLICATION_USER and APPLICATION_PASSWORD in addition to being added to the container's env. Thoughts?
from rails-ex.
@ewolinetz +1 APPLICATION_USER sounds better... also make it clear that you will have to enter these in order to login to application :-) we should also set them to static values and document it.
from rails-ex.
@ewolinetz good news... 2) is not an issue... i scaled rails to 2 replicas and somehow screw the DB.
from rails-ex.
@mfojtik hmm, i remember seeing another issue when scaling the app up with it interacting with the db but that's different than what you have pasted above... strange
from rails-ex.
@mfojtik i think i just came across 2) when testing my PR, it seems that it didn't run db migrate initially...? i'll test your PR and then try to recreate it again after
from rails-ex.
@ewolinetz I merged @mfojtik 's PR which does migration on deploy now. so 2 should be fixed.
from rails-ex.
definitely needs more doc/cleanup around what user to use with the app though.
from rails-ex.
@bparees @ewolinetz i think we fixed all issues... I will do some more testing for rails-ex today, but closing this issue.
from rails-ex.
Related Issues (19)
- OpenShift logging is disabled in production HOT 10
- templates are duplicated in container repository HOT 5
- PG::ConnectionBad with Openshift Deployment HOT 5
- List of changes HOT 1
- Rails container does not restart properly on OpenShift 4.x HOT 2
- Support Ruby 2.7 HOT 13
- s2i with ruby 2.6 does not create secret_key_base HOT 3
- Testing issue creation for samples operator
- No Action Required !! Testing automation workflow HOT 1
- template is not running properly on OpenShift 4 HOT 2
- Standard welcome page contents HOT 5
- Update to Ruby on Rails 5.X HOT 2
- build failed with ruby-20-rhel7 s2i builder image HOT 2
- Update to Rails 5.1 HOT 2
- Document how to change for additional steps HOT 5
- Consistent example applications HOT 21
- rails-ex repo does not support ruby version below 2.3 HOT 5
- Can't send emails from my openshift v3 app HOT 1
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 rails-ex.