Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # What is the name of the local application?
- set :application, "appname"
- # What user is connecting to the remote server?
- set :user, "moi"
- #ssh_options[:forward_agent] = true
- default_run_options[:pty] = true
- # Where is the local repository?
- set :repository, "file:///D:/User/Moi/web_docs/appname"
- # What is the production server domain?
- role :web, "hostname.domain"
- # What remote directory hosts the production website?
- set :deploy_to, "/home/moi/web_docs/appname"
- # Is sudo required to manipulate files on the remote server?
- set :use_sudo, false
- # What version control solution does the project use?
- set :scm, :git
- set :branch, 'master'
- # How are the project files being transferred?
- set :deploy_via, :remote_cache
- # Maintain a local repository cache. Speeds up the copy process.
- set :copy_cache, true
- # Ignore any local files?
- set :copy_exclude, %w(.git)
- # This task symlinks the proper .htaccess file to ensure the
- # production server's APPLICATION_ENV var is set to production
- task :create_symlinks, :roles => :web do
- run "rm #{current_release}/public/.htaccess"
- run "ln -s #{current_release}/production/.htaccess
- #{current_release}/public/.htaccess"
- end
- # After deployment has successfully completed
- # create the .htaccess symlink
- after "deploy:finalize_update", :create_symlinks
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement