-
Notifications
You must be signed in to change notification settings - Fork 0
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:
- 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-----
- 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
- open 'http://tetris.bookingbug.com/sidekiq_web/cron` you should see the integration
- add a json file to import into the
upload
directory on the SFTP server - 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