From b3d9fd915c8fc13003d7f681fb75f78dd47bb599 Mon Sep 17 00:00:00 2001 From: Samyak Bakliwal Date: Sun, 19 Jul 2020 17:26:32 +0530 Subject: [PATCH 1/2] Deployment guide for Vercel --- .../documentation/deployment/vercel.md | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 docs/content/documentation/deployment/vercel.md diff --git a/docs/content/documentation/deployment/vercel.md b/docs/content/documentation/deployment/vercel.md new file mode 100644 index 00000000..028c8705 --- /dev/null +++ b/docs/content/documentation/deployment/vercel.md @@ -0,0 +1,36 @@ ++++ +title = "Vercel" +weight = 20 ++++ + +Vercel (previously zeit) is same as Netlify which makes deployment of site 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 import you can select 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 have + different out directory then specify output directory. + - To add own domain, go to domain setting in left and add your domain. + + +All we have to is include a `vercel.json` in our projects root directory by +specifying `ZOLA_VERSION` we want to use to deploy the site. + +``` + { + "build": { + "env": { + "ZOLA_VERSION": "0.11.0" + } + } +} +``` + +And now your site is up and running. From d242b6bd5fa09108e7fdc3f68b805e6a2301c48a Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Wed, 22 Jul 2020 18:40:43 +0200 Subject: [PATCH 2/2] Change wording a bit --- .../documentation/deployment/gitlab-pages.md | 2 +- .../documentation/deployment/vercel.md | 24 +++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/content/documentation/deployment/gitlab-pages.md b/docs/content/documentation/deployment/gitlab-pages.md index ecd8a179..827ff90c 100644 --- a/docs/content/documentation/deployment/gitlab-pages.md +++ b/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). diff --git a/docs/content/documentation/deployment/vercel.md b/docs/content/documentation/deployment/vercel.md index 028c8705..b2bb2416 100644 --- a/docs/content/documentation/deployment/vercel.md +++ b/docs/content/documentation/deployment/vercel.md @@ -1,27 +1,27 @@ +++ title = "Vercel" -weight = 20 +weight = 50 +++ -Vercel (previously zeit) is same as Netlify which makes deployment of site easy. +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) +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 import you can select settings for your project. +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 have - different out directory then specify output directory. - - To add own domain, go to domain setting in left and add your domain. +- 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 projects root directory by -specifying `ZOLA_VERSION` we want to use to deploy the site. +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. ``` { @@ -33,4 +33,4 @@ specifying `ZOLA_VERSION` we want to use to deploy the site. } ``` -And now your site is up and running. +And your site should now be up and running.