Skip to content

Instantly share code, notes, and snippets.

@nelisr
Forked from jacksonpires/deploy.rb
Last active June 26, 2017 12:02
Show Gist options
  • Save nelisr/7d201bd6c105fe5d8de4c7d4289155ab to your computer and use it in GitHub Desktop.
Save nelisr/7d201bd6c105fe5d8de4c7d4289155ab to your computer and use it in GitHub Desktop.
Configuração global do Capistrano (config/deploy.rb)
set :application, '<Nome da sua App>' # Nome da sua aplicação
set :repo_url, 'git@exemplo.com:eu/sua_app.git' # Repositório git do seu projeto
set :deploy_to, '/var/www/nomedasuaapp'
set :scm, :git
set :branch, 'master'
set :keep_releases, 5
set :format, :airbrussh
set :log_level, :debug
append :linked_files, "config/database.yml"
append :linked_dirs, "log", "tmp/pids", "tmp/cache", "tmp/sockets", "public/system"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment