Skip to content

Commit

Permalink
Merge branch 'hmble-patch-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Keats committed Jul 22, 2020
2 parents 2514ad9 + d242b6b commit 97e7728
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/documentation/deployment/gitlab-pages.md
@@ -1,6 +1,6 @@
+++
title = "GitLab Pages"
weight = 30
weight = 40
+++

We are going to use the GitLab CI runner to automatically publish the site (this CI runner is already included in your repository if you use GitLab.com).
Expand Down
36 changes: 36 additions & 0 deletions docs/content/documentation/deployment/vercel.md
@@ -0,0 +1,36 @@
+++
title = "Vercel"
weight = 50
+++

Vercel (previously zeit) is similar to Netlify, making deployment of sites easy.
The sites are hosted by Vercel and automatically deployed whenever we push a
commit to our selected production branch (e.g, master).

If you don't have an account with Vercel, you can sign up [here](https://vercel.com/signup).

## Automatic deploys

Once you sign up you can import your site from a Git provider (Github, GitLab or Bitbucket).
After the import, you can set the settings for your project.

- Choose Framework Preset as **Other**
- Build command as `zola build` and make sure toggle on Override switch.
- By default Vercel chooses output directory as `public`, if you use a different directory then specify output directory.
- To add your own domain, go to domain setting in left and add it there.


All we have to is include a `vercel.json` in our project's root directory by
specifying the `ZOLA_VERSION` we want to use to deploy the site.

```
{
"build": {
"env": {
"ZOLA_VERSION": "0.11.0"
}
}
}
```

And your site should now be up and running.

0 comments on commit 97e7728

Please sign in to comment.