Skip to content

Commit

Permalink
Use port 8000 as default (5000 no longer works on newest MacOS?)
Browse files Browse the repository at this point in the history
  • Loading branch information
icidasset committed Jun 6, 2022
1 parent 75aff62 commit 4c96c52
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ js-prod: vendor-js


@server:
echo "> Booting up web server on port 5000"
nix-shell --run "simple-http-server --port 5000 --try-file {{BUILD_DIR}}/301.html --cors --index --nocache --silent -- {{BUILD_DIR}}"
echo "> Booting up web server on port 8000"
nix-shell --run "simple-http-server --port 8000 --try-file {{BUILD_DIR}}/301.html --cors --index --nocache --silent -- {{BUILD_DIR}}"


@tauri-dev:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ User layer for user-data storage.

Diffuse is a static web application, which means it's just HTML, CSS and Javascript. No REST API, database, or anything backend-related involved. The app uses a hash, aka. fragment, based routing system, so you don't need any special server rules for routing. You can download a pre-build web-only version of Diffuse on the [releases](https://github.com/icidasset/diffuse/releases) page. Diffuse uses service workers, so you may need HTTPS for it to work smoothly in certain browsers.

I should also note that some source services use OAuth, so you'll need to use your own application credentials (eg. google drive client id + secret). That said, if you're working locally you can use `http://localhost:5000` or `http://127.0.0.1:44999` to use the default ones, that's what the old Electron app was using.
I should also note that some source services use OAuth, so you'll need to use your own application credentials (eg. google drive client id + secret). That said, if you're working locally you can use `http://localhost:8000` or `http://127.0.0.1:44999` to use the default ones, that's what the old Electron app was using.

In short:
- Diffuse is a static, serverless, web application
Expand Down
2 changes: 1 addition & 1 deletion src/Javascript/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


export const WEBNATIVE_STAGING_MODE = (
location.host === "localhost:5000"
location.host === "localhost:8000"
)


Expand Down

0 comments on commit 4c96c52

Please sign in to comment.