Fork me on GitHub Fork me on GitHub

Blog do Kiva

As aventuras de um tal Kivanio na TI

Rails for Kids 2009

SVN ingnorando arquivos do projeto em rails

07/01/2008

Fonte: http://wiki.rubyonrails.org/rails/pages/HowtoUseRailsWithSubversion
  1. Importando sua aplicação rails.
    • navigate to the root of your rails app.
    • svn import . repository_url -m "Import" --username user
  2. Change to the directory containing your rails application, and rename it for safe keeping.
    • mv your_rails_app your_rails_app-backup
  3. 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.
  4. Remove the log files.
    • svn remove log/*
    • svn commit -m "removing all log files from subversion"
  5. 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"
  6. 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/"
  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"
  2. 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