Giter Site home page Giter Site logo

Comments (10)

coreydaley avatar coreydaley commented on June 29, 2024

If this is a new rails default to have that if statement, it seems to me that it would be better to update the templates to include that env var and set the default to true, rather than making this change, as we will have to remember to keep making this change in the future.

https://github.com/openshift/rails-ex/tree/master/openshift/templates

from rails-ex.

luciddreamz avatar luciddreamz commented on June 29, 2024

Anyone deploying from an old template (without the env var set) is still using this example repo.

from rails-ex.

coreydaley avatar coreydaley commented on June 29, 2024

If they are deploying the sample code in this repo, it's just for demo/testing purposes, and if they are deploying an actual application that they wrote, it won't be fixed by either change.

from rails-ex.

luciddreamz avatar luciddreamz commented on June 29, 2024

@bparees @coreydaley You don't think people use our Rails configuration/example as a starting point for their own applications? I have 2 production applications that started as forks of this repo.

from rails-ex.

bparees avatar bparees commented on June 29, 2024

@luciddreamz leave me out of this, i'm fine w/ the change :)

from rails-ex.

coreydaley avatar coreydaley commented on June 29, 2024

@luciddreamz Yes, people use this as a starting point, but removing the if statement here will not update their existing code right? They are not going to rebase this repo into their applications repo periodically correct?

from rails-ex.

luciddreamz avatar luciddreamz commented on June 29, 2024

@coreydaley 100% of places where the template is currently deployed, aka every OpenShift cluster that currently exists, are cases where the Rails template exists without the new environment variable set. Every one of those templates points at this GitHub repo.

from rails-ex.

coreydaley avatar coreydaley commented on June 29, 2024

@luciddreamz The templates on a cluster are never updated to reflect recent updates?

from rails-ex.

luciddreamz avatar luciddreamz commented on June 29, 2024

Correct, which is why the change you are proposing is a problem.

from rails-ex.

bparees avatar bparees commented on June 29, 2024

the templates are updated. but the deploymentconfigs that were created from an old version of the template are not going to be created from the new template, so they will not pick up the new env var.

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.