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!
In all examples you are accessing the repository in “~/var”, when I think should be only “/var”. Is that right?
Received the following error… I have followed every step of the tutorial…
fatal: ‘/var/repo/site.git’ does not appear to be a git repository fatal: Could not read from remote repository.
Solution found, Reference from: http://stackoverflow.com/questions/10391522/git-does-not-appear-to-be-a-git-repository
when adding the git remote. I changed ssh://user@domain/var/repo/site.git to ssh://user@domain/root/var/repo/site.git
It works now.
Great tutorial,
but I like to have my webservers as “clean” as possible. Would something like this be possible if the git repos and the website would be on different vps?
@mikav: I don’t recommend moving the repo to a separate droplet simply because there is no need to do that. You can modify the script to rsync the website’s files to the webserver droplet however this isn’t covered in this article.