Guest User

Untitled

a guest
May 28th, 2013
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.31 KB | None | 0 0
  1. # What is the name of the local application?
  2. set :application, "<application name>"
  3.  
  4. # What user is connecting to the remote server?
  5. set :user, "<username goes here>"
  6.  
  7. # Where is the local repository?
  8. set :repository,  "file:///C:/User/userName/www/<application name>"
  9.  
  10. # What is the production server domain?
  11. role :web, "<hostname.domain>"
  12.  
  13. # What remote directory hosts the production website?
  14. set :deploy_to,   "/home/<username>/<application name>"
  15.  
  16. # Is sudo required to manipulate files on the remote server?
  17. set :use_sudo, false
  18.  
  19. # What version control solution does the project use?
  20. set :scm,        :git
  21. set :branch,     'master'
  22.  
  23. # How are the project files being transferred?
  24. set :deploy_via, :copy
  25.  
  26. # Maintain a local repository cache. Speeds up the copy process.
  27. set :copy_cache, true
  28.  
  29. # Ignore any local files?
  30. set :copy_exclude, %w(.git)
  31.  
  32. # This task symlinks the proper .htaccess file to ensure the
  33. # production server's APPLICATION_ENV var is set to production
  34. task :create_symlinks, :roles => :web do
  35.   run "rm #{current_release}/public/.htaccess"
  36.   run "ln -s #{current_release}/production/.htaccess
  37.             #{current_release}/public/.htaccess"
  38. end
  39.  
  40. # After deployment has successfully completed
  41. # create the .htaccess symlink
  42. after "deploy:finalize_update", :create_symlinks
Advertisement
Add Comment
Please, Sign In to add comment