Giter Club home page Giter Club logo

Comments (2)

peterjmit avatar peterjmit commented on August 24, 2024

Hi @carlcraig,

Thanks for the suggestions, but parameters.yml is a file that is very much specific to the environment and often contains secrets such as database passwords and the like.

Capistrano is not really the best tool for sensitive information as its primary datasource is usually a source code repository and that kind of info should never be stored in the repo. A such I would not be looking to include these changes here.

If you want to have deployment/changes to parameters.yml managed in an automated fashion a server configuration/orchestration tool such as chef/puppet/ansible/salt etc or some kind of service discovery thing is where that should happen.

Alternatively if the values do not change between environments (and are only added when .dist is updated) then they probably belong in one of your config*.yml files

That said if you don't use any of the above and you still find this useful then why not make it a little more generic (i.e. compatibility with any yaml file) and release a general capistrano plugin for the community. Integration with symfony is easy with before/after hooks as mentioned in your gist.

from symfony.

carlcraig avatar carlcraig commented on August 24, 2024

No worries.

The idea with the tasks is to prompts the user to enter the values, to avoid saving them in VCS, and ensure that the shared parameters.yml contains all the required parameters specified in the dist file similar to https://github.com/Incenteev/ParameterHandler.

That being said environment variables are probably the best solution for this, where something like chef/puppet/ansible would be a more appropriate tool.

I agree that it would most likely be better suited to handle generic yml files instead of just parameters.yml and therefore should most likely be its own capistrano plugin.

Thanks for your Feedback.

from symfony.

Related Issues (20)

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.