Skip to content

Steps to setup SFTP

James Williamson edited this page Jul 6, 2018 · 1 revision

To setup the SFTP on Tetris for a demo follow these steps:

  1. add the pem file to the local_settings.yml on the server using the format:
SFTP_PEM_DATA: |
  -----BEGIN RSA PRIVATE KEY-----
  {CONTENTS HERE}
  -----END RSA PRIVATE KEY-----
  1. open http://tetris.bookingbug.com/integrations/connections and add a new integration using the following:
  • type: SFTP
  • settings: {"host":"sftp.bookingbug.com", "username":"bbby_prod", "base_folder":"/local/test", "schedule_cron":"* * * * *", "log_level":1} (change the basefolder to something other than test if want too use another one)
  • set it to UP status
  1. open 'http://tetris.bookingbug.com/sidekiq_web/cron` you should see the integration
  2. add a json file to import into the upload directory on the SFTP server
  3. click enqueue now on the sidekiq job and the import will start

You should then be able to observe the file move into in progress and a report file generated in reports