Week 09 of 2021
Development log of Word Snake
Setup GitLab pages to be served on a custom domain
On by
That means that the public-url is / now (it's set to this value by default in the Makefile)
index 59ff0ac..ec739c4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,7 +4,7 @@ dist:
= stage: build
=
= script:
- - make public-url=${CI_PAGES_URL}
+ - make
=
=
= artifacts:Update levels URL
On by
The game is now served at https://word-snake.software.garden/
index f68ed83..338783d 100644
--- a/src/index.coffee
+++ b/src/index.coffee
@@ -13,7 +13,7 @@ levels_url =
= else if process.env.NODE_ENV is "development"
= "/levels/default.snake"
= else
- "https://hornbook.gitlab.io/word-snake/levels/default.snake"
+ "https://word-snake.software.garden/levels/default.snake"
=
=node = document.getElementById "app"
=flags = { levels_url }