1
1
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:
Jens Krause 2017-07-14 15:17:44 +02:00
parent be77f89d07
commit c823ca780b
No known key found for this signature in database
GPG Key ID: 3B2FAFBCEFA5906D
3 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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() {

View File

@ -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() {