Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 666 Bytes

README.md

File metadata and controls

39 lines (28 loc) · 666 Bytes

ActiveStorage FTP Service

FTP Active Storage service.

Installation

Add this line to your application's Gemfile:

gem 'activestorage-ftp'

And then execute:

$ bundle install

Usage

config/storage.yml

production:
  service: Ftp
  ftp_host: <%= ENV["FTP_HOST"] %>
  ftp_port: <%= ENV["FTP_PORT"] %>
  ftp_user: <%= ENV["FTP_USER"] %>
  ftp_passwd: <%= ENV["FTP_PASSWD"] %>
  ftp_folder: <%= ENV["FTP_FOLDER"] %>
  ftp_url: <%= ENV["FTP_URL"] %>
  # optional
  ftp_passive: true
  ftp_chmod: 0600

License

The gem is available as open source under the terms of the MIT License.