1
1
mirror of https://github.com/aelve/guide.git synced 2024-12-22 20:31:31 +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 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

View File

@ -45,7 +45,7 @@ class Category extends Component {
componentDidMount() {
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}))
}
render() {
@ -74,7 +74,7 @@ class Category extends Component {
</div>
</div>
</div>
<div>{
<div>{
this.state.cat.items
.map(item => <Item key={item.uid} {...item}/>)
}</div>
@ -83,7 +83,7 @@ class Category extends Component {
.Item {
margin-top: 20px;
}
.category-info {
display: block;
box-sizing: border-box;
@ -102,9 +102,9 @@ class Category extends Component {
.text-button::before {content: "[";}
.text-button::after {content: "]";}
.text-button > a:visited {color: #008ACE;}
h1 > a:visited {color: #008ACE;}
h1 > a:visited {color: #008ACE;}
.category-info .group {
font-size: 60%;

View File

@ -14,7 +14,7 @@ class Home extends Component {
this.setState({ categories: [] });
}
componentDidMount() {
fetchData('http://localhost:8080/haskell/api/all-categories')
fetchData('http://localhost:3080/haskell/api/all-categories')
.then(data => this.setState({categories: data}))
}
render() {