aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--DEPLOY.md4
-rwxr-xr-xprebuild.sh2
2 files changed, 3 insertions, 3 deletions
diff --git a/DEPLOY.md b/DEPLOY.md
index 43ccccc..cf645d4 100644
--- a/DEPLOY.md
+++ b/DEPLOY.md
@@ -31,13 +31,13 @@
- Set `SERVER_IMG_PATH` to the URL path where images will be served (eg: `'/img/tilo'`).
If you place it within the `base` directory, you'll need to remember to move it when deploying
a newer production build.
- - In `backend/tilo.py`: Set `dbFile` to where the database will be placed (eg: `'/usr/local/www/db/tilo.db'`)
+ - In `backend/tilo.py`: Set `DB_FILE` to where the database will be placed (eg: `'/usr/local/www/db/tilo.db'`)
1. Generate the client-side production build <br>
Run `npm run build`. This generates a directory `dist/`.
1. Copy files to the server (using ssh, sftp, or otherwise)
1. Copy `dist/` into Apache's document root, into the directory where Tilo will be served.
The created directory should match up with the `base` value above (eg: `/var/www/terryt.dev/tilo/`).
- 1. Copy over `backend/tolData/data.db`. The result should be denoted by the `dbFile` value above.
+ 1. Copy over `backend/tolData/data.db`. The result should be denoted by the `DB_FILE` value above.
Remember to set ownership and permissions as needed.
1. Copy over the images in `backend/tolData/img/`. There are a lot of them, so compressing them
before transfer is advisable (eg: `tar czf imgs.tar.gz backend/tolData/img/`). The location should
diff --git a/prebuild.sh b/prebuild.sh
index 5f348c1..e9b939a 100755
--- a/prebuild.sh
+++ b/prebuild.sh
@@ -4,4 +4,4 @@ set -e
sed -i -e "s|base: .*,|base: '/tilo/',|" vite.config.js
sed -i -e "s|SERVER_DATA_URL = .*|SERVER_DATA_URL = (new URL(window.location.href)).origin + '/tilo/data/'|" \
-e "s|SERVER_IMG_PATH = .*|SERVER_IMG_PATH = '/img/tilo/'|" src/lib.ts
-sed -i -e 's|dbFile = .*|dbFile = "/usr/local/www/db/tilo.db"|' backend/tilo.py
+sed -i -e 's|DB_FILE = .*|DB_FILE = "/usr/local/www/db/tilo.db"|' backend/tilo.py