Commit b5e15b94 authored by Thomas Jensen's avatar Thomas Jensen

Content/zeit 404 issue

parent 0040b177
......@@ -30,8 +30,9 @@ build:prod:
deploy:prod:
stage: deploy
image: node:alpine
script:
before_script:
- npm -g i now --unsafe-perm now
script:
- now -A ../now.json public --token=${NOW_TOKEN} --target production
environment:
name: production
......@@ -50,8 +51,6 @@ build:staging:
stage: build
before_script:
- apk add --update --no-cache git
- "sed -i -e \"4s/uctrl\\.dev/$DEPLOY_STAGING_URL/g\" now.json"
- "echo \"User-agent: *\nDisallow: /\" > public/robots.txt"
script:
- hugo -D -F -b https://$DEPLOY_STAGING_URL
artifacts:
......@@ -65,6 +64,9 @@ build:staging:
deploy:staging:
stage: deploy
image: node:alpine
before_script:
- "sed -i -e \"4s/uctrl\\.dev/$DEPLOY_STAGING_URL/g\" now.json"
- "echo \"User-agent: *\nDisallow: /\" > public/robots.txt"
script:
- npm -g i now --unsafe-perm now
- now -A ../now.json public --token=${NOW_TOKEN} --name uctrl-staging --target production
......
......@@ -61,7 +61,7 @@ These are the things I have overridden in the [aether](https://themes.gohugo.io/
* Added SEO, favicon and canonical header information.
* Added [fingerprinting](https://gohugo.io/hugo-pipes/fingerprint/) to style and script assets.
* Made the header brand look like a Bash terminal, and added a blinking cursor, got that idea from [Hello Friend](https://themes.gohugo.io/hugo-theme-hello-friend/).
* Added a 404 error page. (Which is not active yet, due to a bug in `now-cli`.)
* Added a 404 error page. (~~Which is not active yet, due to a [bug](https://github.com/zeit/now-cli/issues/2453).~~ Fixed!)
* A few minor CSS tweaks here and there :)
{{< notice >}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment