Cleanup, now redirects work again #2
13
README.md
13
README.md
@ -5,4 +5,15 @@ build the dockerfile with: docker build -t slaeforms .
|
|||||||
|
|
||||||
run the container on port 8000 with: docker run -d -p 8000:8000 slaeforms
|
run the container on port 8000 with: docker run -d -p 8000:8000 slaeforms
|
||||||
|
|
||||||
export the container: docker save -o slaeforms.tar slaforms:latest
|
export the container: docker save -o slaeforms.tar slaforms:latest
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Pushing code from desktop to leafblade:
|
||||||
|
|
||||||
|
See remotes: git remote -v
|
||||||
|
|
||||||
|
git push leafblade working //push working branch
|
||||||
|
|
||||||
|
then create a pull request on leafblade and merge everything
|
@ -46,14 +46,12 @@ document.getElementById("question_form").addEventListener("submit", function (ev
|
|||||||
// code to handle proper redirection after submit
|
// code to handle proper redirection after submit
|
||||||
console.log('Response:', response);
|
console.log('Response:', response);
|
||||||
// check if response is a redirect
|
// check if response is a redirect
|
||||||
/*
|
|
||||||
if (response.redirected) {
|
if (response.redirected) {
|
||||||
console.log("Redirecting to:", response.url);
|
console.log("Redirecting to:", response.url);
|
||||||
window.location.href = response.url; // Redirect to the new page
|
window.location.href = response.url; // Redirect to the new page
|
||||||
} else {
|
} else {
|
||||||
console.log("No redirect response received.");
|
console.log("No redirect response received.");
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
console.error('Error:', error);
|
console.error('Error:', error);
|
||||||
|
Loading…
Reference in New Issue
Block a user