SVN ingnorando arquivos do projeto em rails
07/01/2008
Fonte: http://wiki.rubyonrails.org/rails/pages/HowtoUseRailsWithSubversion
- Importando sua aplicação rails.
- navigate to the root of your rails app.
-
svn import . repository_url -m "Import" --username user
- Change to the directory containing your rails application, and rename it for safe keeping.
-
mv your_rails_app your_rails_app-backup
-
- Check out your rails application
-
svn checkout svn_url_to_your_repository your_rails_app - navigate to the root of this freshly checked out working copy.
-
- Remove the log files.
-
svn remove log/* -
svn commit -m "removing all log files from subversion"
-
- Ignore the log files when they are re-created (Note for Capistrano/Switchtower users: the log directory is “shared” so it needs to be ignored itself, not just its contents)
-
svn propset svn:ignore "*.log" log/ -
svn update log/ -
svn commit -m "Ignoring all files in /log/ ending in .log"
-
- Ignore the tmp directory with all its content (cache, sessions, sockets) (Rails >= 1.1, ignore all tmp/ content.)
- Rails < 1.1
-
svn propset svn:ignore "*" tmp/sessions tmp/cache tmp/sockets
-
- Rails >= 1.1
-
svn remove tmp/* -
svn propset svn:ignore "*" tmp/ -
svn update tmp/
-
-
svn commit -m "Ignoring all files in /tmp/"
- Rails < 1.1
- Don’t version control database.yml
-
svn move config/database.yml config/database.example -
svn commit -m "Moving database.yml to database.example to provide a template for anyone who checks out the code"
-
- Ignore database.yml when it’s re-created
-
svn propset svn:ignore "database.yml" config/ -
svn update config/ -
svn commit -m "Ignoring database.yml"
-







Comentários
Sem comentários para esta matéria.Comentar artigo
Campos em negrito são obrigatórios.
< Voltar