Giter Site home page Giter Site logo

Rails example issues about rails-ex HOT 13 CLOSED

sclorg avatar sclorg commented on September 26, 2024
Rails example issues

from rails-ex.

Comments (13)

mfojtik avatar mfojtik commented on September 26, 2024

@ewolinetz @bparees

from rails-ex.

mfojtik avatar mfojtik commented on September 26, 2024
  1. is handled by sticky sessions at router, so ignore it :)

from rails-ex.

bparees avatar bparees commented on September 26, 2024

@mfojtik to be clear the default behavior is clientip based routing, but same difference basically.

from rails-ex.

ewolinetz avatar ewolinetz commented on September 26, 2024

@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.

mfojtik avatar mfojtik commented on September 26, 2024

@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.

ewolinetz avatar ewolinetz commented on September 26, 2024

@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.

mfojtik avatar mfojtik commented on September 26, 2024

@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.

mfojtik avatar mfojtik commented on September 26, 2024

@ewolinetz good news... 2) is not an issue... i scaled rails to 2 replicas and somehow screw the DB.

from rails-ex.

ewolinetz avatar ewolinetz commented on September 26, 2024

@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.

ewolinetz avatar ewolinetz commented on September 26, 2024

@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.

bparees avatar bparees commented on September 26, 2024

@ewolinetz I merged @mfojtik 's PR which does migration on deploy now. so 2 should be fixed.

from rails-ex.

bparees avatar bparees commented on September 26, 2024

definitely needs more doc/cleanup around what user to use with the app though.

from rails-ex.

mfojtik avatar mfojtik commented on September 26, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.