Skip to content

Commit

Permalink
removed timeout from ajax req; added err msg
Browse files Browse the repository at this point in the history
  • Loading branch information
linxOD committed Oct 3, 2022
1 parent 97aca47 commit 2db816c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ test.json
/werke
__pycache__
.vscode
/tmp_to_collate
/tmp_to_collate
index.html
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
### build & run

* `docker build -t frd-int .`
* `docker run -d --name frd-int -p 80:80 frd-int`
* `docker run -d --name frd-int -p 8020:8020 frd-int`

or just run `./build_and_run.sh`

### use published image

docker run -d --name frd-int -p 80:80 ghcr.io/freud-digital/frd-interface:latest
docker run -d --name frd-int -p 8020:8020 ghcr.io/freud-digital/frd-interface:latest
10 changes: 9 additions & 1 deletion app/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,15 @@
});
});
},
timeout: 60000
// timeout: 60000,
statusCode: {
404: function() {
console.log( "server request resulted in 404 error" );
},
500: function() {
console.log( "server request resulted in 500 error" );
}
}
});
$.ajax({
type: "POST",
Expand Down

0 comments on commit 2db816c

Please sign in to comment.