Where to put config files that are outside the VCS ? (eg:database.yml in Rails)
Hello,
I'm giving TeamCity a try and so far I like what I see *a lot*. I'm trying to properly launch the tests of a Rails app using the Rake runner. Like the usual Rails app it expects config/database.yml to tell it the db configuration. It's not stored in my SVN repository.
So I need to put a specific database.yml file in the checkout directory.
Is there a recommended practice to deal with this ? Should I manually go inside some checkout folder (where is it ?) to put my file there ? Or can I find some way to nicely integrate this content in the TeamCity UI ?
What do others do ?
Some unrelated feedback on my installation:
- installation went fine on Mac OS X. On the other hand on Windows I could install but I never got the administration and create project button, I really don't know why.
- I needed to reset my password on the forum and could not find a way to tell I had forgotten it (I had to google jetbrains community password reset to find a solution).
- I've been quite confused about what a VCS root is (even after reading the documentation). At first I thought I could use it as a SVN repository declaration, then build on it to only checkout whats below myproject/trunk/myproject folder. Finally I used a fully qualified path, I believe I'm probably not using the VCS root the right way.
cheers
Thibaut
--
http://blog.logeek.fr
http://evolvingworker.com
Please sign in to leave a comment.
Hello Thibaut,
Thanks for trying TeamCity!
Personally, I keep database.yml in the SVN repository. But if you don't want to, I suppose you have to write a rake task
which would create one. After that you can mention this task in the Rake runner setup, just before 'tests' task.
Do not create this file manually, because TeamCity may eventually re-checkout full sources from version control and this
file will be lost.
VCS root is exactly subversion repository in your case. Please see a short demo how to setup Rake project with subversion
repository at The most advanced continuous integration for Ruby on Rails with TeamCity 4.0
The target checkout directory for the build you can find from full build log, in first lines.
Not sure about problems with Windows installations - please give more details. What do you see when you go to
TeamCity URL?
Hope this helps,
KIR