Skip to content
Deploy static sites via simple ftp
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
lib
spec
.autotest
.gitignore
CHANGELOG.md
Gemfile
Gemfile.lock
README.md
Rakefile
ftp_deploy.gemspec

README.md

Install

Add this line to yuor Gemfile:

gem "ftp_deploy"

Then run "bundle install"

Configuration

Define your staging configs inside a file called 'ftp_deploy.yml' or 'ftp_deploy.yml.erb'

staging:
  host: 'test.host.com'
  user: 'root'
  password: 'root'
  base_dir: './site'
  remote_base_dir: '/var/www/test.host.com' # optional, defaults to user home
  rewrite_base: '.' # depending on rewrite setting, this must be an absolute path

Running

ftp_deploy deploy staging
ftp_deploy deploy production

TODO

  • rollbacks
Something went wrong with that request. Please try again.