Skip to content

Instantly share code, notes, and snippets.

View jansowinski's full-sized avatar

Jan Sowinski jansowinski

View GitHub Profile
@jansowinski
jansowinski / sync.rb
Last active February 19, 2017 21:16
Simple sinatra solution for syncing github repo with external ftp server
load 'ftp_sync.rb' # use this library -> https://github.com/ashchan/ftpsync
require 'sinatra'
# Here you set global ip of your vps
set :bind, '0.0.0.0'
# Here you set port
set :port, '80'
# here you set FTP host
host = 'example.com'