diff --git a/.gitignore b/.gitignore index 38f4b9d..2ce08e9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -build +dist node_modules src/react-app-env.d.ts cypress/fixtures/example.json diff --git a/README.md b/README.md index 472c271..0132f29 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ cd topola-viewer npm install npm run build ``` -Now, take the contents of the `build/` folder and host it on your own server. +Now, take the contents of the `dist/` folder and host it on your own server. ### Use an existing package @@ -107,18 +107,18 @@ These are the exact files that are hosted on GitHub pages. ### Build for your own data only -You can run Topola Viewer in a "single tree mode" that displays only the GEDCOM you specify. Specify the URL to a GEDCOM file in the `REACT_APP_STATIC_URL` environment variable when building and running the application. +You can run Topola Viewer in a "single tree mode" that displays only the GEDCOM you specify. Specify the URL to a GEDCOM file in the `VITE_STATIC_URL` environment variable when building and running the application. Run locally with the specified data URL: ``` -REACT_APP_STATIC_URL=https://example.org/sample.ged npm start +VITE_STATIC_URL=https://example.org/sample.ged npm start ``` Build with the specified data URL: ``` -REACT_APP_STATIC_URL=https://example.org/sample.ged npm run build +VITE_STATIC_URL=https://example.org/sample.ged npm run build ``` -The `build/` folder will contain files that can be hosted on a Web server. +The `dist/` folder will contain files that can be hosted on a Web server. ### Alternative build diff --git a/deploy-wikitree.sh b/deploy-wikitree.sh index effbb52..59323f3 100755 --- a/deploy-wikitree.sh +++ b/deploy-wikitree.sh @@ -4,7 +4,7 @@ set -e echo Copying files... lftp --env-password sftp://wiech13@apps.wikitree.com << EOF mkdir www/topola-viewer.new - mirror -R -p build/ www/topola-viewer.new/ + mirror -R -p dist/ www/topola-viewer.new/ rm -r www/topola-viewer.old mv www/topola-viewer www/topola-viewer.old mv www/topola-viewer.new www/topola-viewer diff --git a/public/index.html b/index.html similarity index 93% rename from public/index.html rename to index.html index d2ac9dd..dad208d 100644 --- a/public/index.html +++ b/index.html @@ -19,5 +19,6 @@ You need to enable JavaScript to run this app.
+