Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing example configuration to use correct deploy method #108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ following to `config.rb`:

```ruby
activate :deploy do |deploy|
deploy.deploy_method = :rsync
deploy.method = :rsync
deploy.host = 'www.example.com'
deploy.path = '/srv/www/site'
# Optional Settings
Expand All @@ -44,7 +44,7 @@ following to `config.rb`:

```ruby
activate :deploy do |deploy|
deploy.deploy_method = :git
deploy.method = :git
# Optional Settings
# deploy.remote = 'custom-remote' # remote name or git url, default: origin
# deploy.branch = 'custom-branch' # default: gh-pages
Expand All @@ -70,7 +70,7 @@ Activate the extension by adding the following to `config.rb`:

```ruby
activate :deploy do |deploy|
deploy.deploy_method = :ftp
deploy.method = :ftp
deploy.host = 'ftp.example.com'
deploy.path = '/srv/www/site'
deploy.user = 'tvaughan'
Expand All @@ -84,7 +84,7 @@ Activate the extension by adding the following to `config.rb`:

```ruby
activate :deploy do |deploy|
deploy.deploy_method = :sftp
deploy.method = :sftp
deploy.host = 'sftp.example.com'
deploy.port = 22
deploy.path = '/srv/www/site'
Expand Down Expand Up @@ -115,13 +115,13 @@ Deploy your site to more than one configuration using environment variables.
case ENV['TARGET'].to_s.downcase
when 'production'
activate :deploy do |deploy|
deploy.deploy_method = :rsync
deploy.method = :rsync
deploy.host = 'www.example.com'
deploy.path = '/srv/www/production-site'
end
else
activate :deploy do |deploy|
deploy.deploy_method = :rsync
deploy.method = :rsync
deploy.host = 'staging.example.com'
deploy.path = '/srv/www/staging-site'
end
Expand Down