# Various files
-/hooks/post-update
/server/db/vchess.sqlite
/server/config/parameters.js
-/client/dist/
+/server/fallback/*
+!/server/fallback/README
+/client/dist/*
+!/client/dist/.gitkeep
/client/src/parameters.js
# Dependency directories#
cd client
npm run build
fi
-# TOOD: also should restart the service if server code changes
+
+# NOTE: should also restart the service if server code changes
// Client "prod" files:
app.use(express.static(path.join(__dirname, 'static')));
// Update in progress:
-app.use(express.static(path.join(__dirname, 'while_update')));
+app.use(express.static(path.join(__dirname, 'fallback')));
// In development stage the client side has its own server
if (params.cors.enable)
--- /dev/null
+Fallback folder to server while server updates.
+Updated after each client code update.
+++ /dev/null
-#$# git-fat 79e7b6b353fa77bdb2ab20fcb86055db27175b91 9662
+++ /dev/null
-<!DOCTYPE html>
-<html>
- <head>
- <meta charset="utf-8">
- <title>vchess - club</title>
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width,initial-scale=1.0">
- <style>
- #container {
- position: absolute;
- width: 100%;
- top: 30%;
- }
- p {
- text-align: center;
- font-weight: bold;
- font-size: 2rem;
- }
- </style>
- </head>
- <body>
- <div id="container">
- <p>Website update in progress !</p>
- <p>It won't be long. Don't worry :)</p>
- </div>
- </body>
-</html>