Skip to content

Instantly share code, notes, and snippets.

Avatar

Ian Sowinski iansowinski

View GitHub Profile
@iansowinski
iansowinski / sync.rb
Last active Feb 19, 2017
Simple sinatra solution for syncing github repo with external ftp server
View sync.rb
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'
You can’t perform that action at this time.