php - Should the capistrano configuration files be checked in with git? -


i deploying wordpress site using capistrano 3 , git , i'm wondering if capistrano folder/files in

/config /lib 

like

/config/deploy.rb 

should checked in git?

and checked out , copied server when deploying?
or should add them in .gitignore , let every developer set capistrano themselfs.

the files might contain sensitive information after all.

you should check in that's general build/deploy mechanism. needs live somewhere. if not in main repository, maybe you'll set secondary project deploying project. since deploy routines can quite bit of complex code in themselves, need version-control files somewhere. application assumes architecture run on, , capistrano's job set architecture, makes sense keep both things in same repository.

you should indeed not check in secrets, , perhaps not machine-specific configurations either. should created locally on deploying machine tailored specific target machine(s). have full power of ruby @ disposal, creating local config files or such load on demand shouldn't problem.

rule of thumb: should able make clean checkout of repository, create local configuration sets specific parameters specific target machines deploy to, , hit cap deploy , should work. should not need modify capistrano code in order make work, , neither should need write entire capistrano configuration , deployment process scratch.


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -