Skip to content

Commit a8f9a23

Browse files
committed
Fix install dir and gunicorn working directory location
1 parent 7308b2a commit a8f9a23

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

bin/mathesar

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,9 @@ run_mathesar() {
254254
fi
255255

256256
info "Starting gunicorn webserver..."
257-
exec "$gunicorn_bin" $gunicorn_opts
257+
pushd "${BASE_DIR}" > /dev/null
258+
exec "$gunicorn_bin" $gunicorn_opts
259+
popd > /dev/null
258260
}
259261

260262

docs/docs/administration/install-from-scratch.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
<input data-input-for="MATHESAR_INSTALL_DIR" aria-label="Your Mathesar installation directory"/>
5252
1. Create and chown it if it doesn’t exist:
5353
```bash
54-
sudo mkdir -p "xMATHESAR_INSTALL_DIRx"
55-
sudo chown "$(id -u):$(id -g)" "xMATHESAR_INSTALL_DIRx"
54+
mkdir -p "xMATHESAR_INSTALL_DIRx"
55+
chown "$(id -u):$(id -g)" "xMATHESAR_INSTALL_DIRx"
5656
```
5757
1. Move inside the installation directory.
5858
```bash
@@ -63,7 +63,7 @@ cd "xMATHESAR_INSTALL_DIRx"
6363

6464
1. Download and make the script executable:
6565
```bash
66-
curl -sSfL https://raw.githubusercontent.com/mathesar-foundation/mathesar/{{mathesar_version}}/install.sh -o install.sh
66+
curl -sSfL https://raw.githubusercontent.com/mathesar-foundation/mathesar/{{mathesar_version}}/scripts/install.sh -o install.sh
6767
chmod +x install.sh
6868
```
6969
1. Run it, **pointing at the Postgres DB you created**:

scripts/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ PACKAGE_LOCATION="https://github.com/mathesar-foundation/mathesar/releases/downl
4646

4747
# This is called before installation
4848
set_install_dir() {
49-
INSTALL_DIR="$1"
49+
INSTALL_DIR="$(cd -P "$1" && pwd)"
5050

5151
UV_DIR="${INSTALL_DIR}"/uv
5252
PACKAGE_DIR="${INSTALL_DIR}"/packages

0 commit comments

Comments
 (0)