diff --git a/.gitignore b/.gitignore index 4b23574..ace12e1 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ node_modules .*.swp .*.swo *~ -dist/ +public/ +pacosako.db diff --git a/js/pacosako_io.js b/js/pacosako_io.js index b497cdf..65dc02c 100644 --- a/js/pacosako_io.js +++ b/js/pacosako_io.js @@ -1,6 +1,9 @@ 'use strict'; -const API_BASE = `https://pacosako.jessemcdonald.info/api`; +// Use the full URL to access production data from clients hosted on other servers. +//const API_BASE = `https://pacosako.jessemcdonald.info/api`; + +const API_BASE = `/api`; const SHORT_TIMEOUT = 5000/*ms*/; const LONG_TIMEOUT = 90000/*ms*/; diff --git a/package-lock.json b/package-lock.json index b9a1d70..023a56b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7042,7 +7042,7 @@ }, "paco-sako-server": { "version": "0.3.0", - "resolved": "git+https://jessemcdonald.info/gogs/nybble/paco_sako_server#902445c29fafdcfb4d98761418075649ac20bd82", + "resolved": "git+https://jessemcdonald.info/gogs/nybble/paco_sako_server#45230dc112f7c8cab7e284df6ca8710d9e9efcc4", "optional": true, "requires": { "cors": "^2.8.5", diff --git a/package.json b/package.json index c62b7e6..f8e170a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "paco-sako", - "version": "0.4.0", + "version": "0.4.1", "description": "Online version of the Paco Ŝako chess variation", "keywords": [ "game", @@ -24,7 +24,7 @@ "test": "echo \"Error: no test specified\" && exit 1", "build": "webpack", "dev-build": "webpack --mode=development", - "deploy": "rsync --times --recursive --delete-after --verbose --progress dist/ pacosako-www@pacosako.jessemcdonald.info:/var/www/pacosako/" + "deploy": "rsync --times --recursive --delete-after --verbose --progress public/ pacosako-www@pacosako.jessemcdonald.info:/var/www/pacosako/" }, "repository": { "type": "git", diff --git a/webpack.config.js b/webpack.config.js index 960b0a2..6d0ace9 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -13,7 +13,7 @@ module.exports = { }, output: { filename: '[name].[contenthash].js', - path: path.resolve(__dirname, 'dist'), + path: path.resolve(__dirname, 'public'), publicPath: '' }, module: {