mirror of
https://github.com/aelve/guide.git
synced 2024-12-23 04:42:24 +03:00
Change port of React
app to 3080
PureScript app is running on `8080` now
This commit is contained in:
parent
be77f89d07
commit
c823ca780b
@ -22,7 +22,7 @@ The `config.json` file contains the config (it will be created at the 1st start)
|
|||||||
$ stack build
|
$ stack build
|
||||||
$ stack exec guide
|
$ stack exec guide
|
||||||
|
|
||||||
And go to <http://localhost:8080>. The status page is available at <http://localhost:5050>; the admin page, at <http://localhost:8080/admin>.
|
And go to <http://localhost:3080>. The status page is available at <http://localhost:5050>; the admin page, at <http://localhost:3080/admin>.
|
||||||
|
|
||||||
# How to install on a server
|
# How to install on a server
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ class Category extends Component {
|
|||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
const uid = extractUid(this.props.match.params.uid);
|
const uid = extractUid(this.props.match.params.uid);
|
||||||
|
|
||||||
fetchData('http://localhost:8080/haskell/api/category/'+uid)
|
fetchData('http://localhost:3080/haskell/api/category/'+uid)
|
||||||
.then((data : T.Cat) => this.setState({cat: data}))
|
.then((data : T.Cat) => this.setState({cat: data}))
|
||||||
}
|
}
|
||||||
render() {
|
render() {
|
||||||
|
@ -14,7 +14,7 @@ class Home extends Component {
|
|||||||
this.setState({ categories: [] });
|
this.setState({ categories: [] });
|
||||||
}
|
}
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
fetchData('http://localhost:8080/haskell/api/all-categories')
|
fetchData('http://localhost:3080/haskell/api/all-categories')
|
||||||
.then(data => this.setState({categories: data}))
|
.then(data => this.setState({categories: data}))
|
||||||
}
|
}
|
||||||
render() {
|
render() {
|
||||||
|
Loading…
Reference in New Issue
Block a user