diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..1615d9f9a53fb6c58bf0c30c730b98fd5af2cfe6 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,32 @@ +image: node:16-alpine + +stages: + - setup + +be-setup-job: + stage: setup + cache: + - key: + files: + - backend/package-lock.json + paths: + - backend/node_modules + script: + # TODO: drop python once we stop using sqlite3 in CI (soon, please) + - apk add --update python2 build-base + - cd backend + - npm install + - echo Success! + +fe-setup-job: + stage: setup + cache: + - key: + files: + - frontend/package-lock.json + paths: + - frontend/node_modules + script: + - cd frontend + - npm install + - echo Success! diff --git a/frontend/src/js/main.js b/frontend/src/js/main.js index fbef84b45525a2321eec831942215da19a7bce47..95229b53bbad954ea9e79ac95598f7957f4ce81c 100644 --- a/frontend/src/js/main.js +++ b/frontend/src/js/main.js @@ -87,7 +87,7 @@ function preload() { } // window.OetziWordsSiteUrlPrefix = "http://localhost:8080/oetzi_words/" //use this to develop -window.OetziWordsSiteUrlPrefix = ""; // use this to deploy +window.OetziWordsSiteUrlPrefix = "http://localhost:8080/"; // use this to deploy let gameRunning = false; let player;