bitbucket - How to automate building and deploying Jekyll site to webserver via FTP -


my jekyll files stored in bitbucket, , able automatically generate _site folder on every new change gets pushed. (note, don't want push _site folder git, out of question).

once _site generated, automatically deploy webserver via ftp.

is @ possible? options?

thank you!

since didn't mention _site folder go, here' generic answer.

in short, need webserver or service listens bitbucket post commit hook, here relevant documentation that.

that way, on every push, bitbucket trigger action , notify server/app/service build new _site , deploy want to.

here's tutorial on setting use of cron jobs , webserver. link

a simple vps work, or tiny amazon ec instance/azure virtual machine.

of course, these not 100% free.

if hate using servers, a continuous integration (ci) service can used instead, on commit hooks trigger build,

travis-ci , drone.io free public repos, if repo private you'll have go paid service. there many others well.

(note travis-ci not compatible bitbucket @ time of writing, works github)

basically ci used run tests, aside that, can use generate build , push or copy _site somewhere, maybe own server. or in case of how article describes it, repo. (read 'becoming jekyll god' on how creative ways on deploying)


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -