Skip to content

Commit

Permalink
Change the backend port to 8080. (#798)
Browse files Browse the repository at this point in the history
This makes the setup easier since this is the default port.
  • Loading branch information
gimite authored Aug 20, 2021
1 parent 33e1469 commit 1f52fdd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ to get the dependencies for our React app.
Once you have everything, the easiest way to develop the UI is to run two local
servers:

1. Run the Django (backend) server as usual, at port 8000.
1. Run the Django (backend) server as usual, at port 8080 (default).
2. Enable the React UI support (currently disabled by default) in the backend by
setting `enable_react_ui` config to True:
```
$ ./tools/console localhost:8000
$ ./tools/console localhost:8080
> config.set(enable_react_ui=True)
```
3. Run the UI with `tools/ui run`. It will talk to the backend at port 8000 when
3. Run the UI with `tools/ui run`. It will talk to the backend at port 8080 when
it needs to make API calls. There is currently an issue with uploaded photos:
the Webpack dev server is not set up to proxy requests for photo URLs, but it
also can't serve the photos on its own, so photos will not correctly appear
Expand Down
2 changes: 1 addition & 1 deletion ui/webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = merge(common, {
contentBase: path.join(__dirname, 'static/'),
proxy: {
'/*/d/**': {
target: 'http://localhost:8000',
target: 'http://localhost:8080',
secure: false
}
},
Expand Down

0 comments on commit 1f52fdd

Please sign in to comment.