Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
For my post-receive, building my website can take a while, longer than it takes to copy files around especially on that beautiful SSD you give me, so I build my site in a separate directory and then copy the files over to my public folder. See code below.
#!/bin/bash -l GIT_REPO=<same as original post> TMP_GIT_CLONE=<same as original post> PUBLIC_WWW=<same as original post>
git clone $GIT_REPO $TMP_GIT_CLONE jekyll build --source $TMP_GIT_CLONE --destination $TMP_GIT_CLONE/_site cp -r $TMP_GIT_CLONE/_site/* $PUBLIC_WWW rm -Rf $TMP_GIT_CLONE exit
@Ezra: It’s created automatically once you run <code>git init --bare</code>.
@miles You mean password protect your blog? There are a few tutorials about that on DO. The only problem I ran into was that Jekyll deletes dot files by default.
In case if we have configured SSH on a different port whats the syntax to add the remote origin in local git repo?
@fareez.ahamed:
git remote add droplet ssh://user@example.org:port/repos/awesomeblog.git
Hi, I’m getting really stuck with this. I have a droplet that is set up with Debian 7, Apache 2, Ruby, Jekyll and Git.
I followed this step by step, but when I push and check my site, it’s still just the default apache index.
I’m not getting any errors, so I assume the post-receive script just isn’t firing?
Have you any ideas why this could be? I have triple checked my files are written exactly like yours, and my public html file is definitely var/www/.
Hi great article! It’s very easy and clean.
But I got an error when push my code, jekyll needs a javascript runner in the machine (please see: https://github.com/jekyll/jekyll/issues/2327). It’ll be perfect if you update the article with this :)
Thanks