Skip to content

Commit 05388d7

Browse files
committed
fix: Define BACKEND_DIR and correct usage in oneclick-conda-install.sh
1 parent 0a11de9 commit 05388d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oneclick-conda-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ set -euo pipefail
2626
readonly PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
2727
readonly FRONTEND_DIR="${PROJECT_ROOT}/surfsense_web"
2828
readonly EXTENSION_DIR="${PROJECT_ROOT}/surfsense_browser_extension"
29+
readonly BACKEND_DIR="${PROJECT_ROOT}/surfsense_backend"
2930

3031
ENV_NAME="${SURFSENSE_ENV_NAME:-surfsense}"
3132
PYTHON_VERSION="${SURFSENSE_PYTHON_VERSION:-3.12}"
@@ -96,7 +97,7 @@ main() {
9697
conda activate ${ENV_NAME}
9798
9899
2. Start the backend API:
99-
(cd ${BACKEND_DIR} && uvicorn app.app:app --reload)
100+
(cd "${BACKEND_DIR}" && uvicorn app.app:app --reload)
100101
or refer to DEPLOYMENT_GUIDE.md for production options.
101102
102103
3. Start the web app (if npm was available):
@@ -107,4 +108,3 @@ EOF
107108
}
108109

109110
main "$@"
110-

0 commit comments

Comments
 (0)