1
Web App does not work on self host
complete
B
Bruce X
Hi, I re-visited Appgyver to check whether an issue I reported in the forums 3 weeks ago had been dealt with. Now, I have just rebuilt my web app (185324) in version 2.5.10. When I open it in the preview portal a start message is displayed successfully, which is a simple Alert fired at page entry.
When I download the web app and start it in it my local IIS, the app will start but the start message will not display. Also, buttons on the same page, that work in the preview portal, do not work in my local IIS. Is there anything special I have to do with IIS?
Log In
Activity
Newest
Oldest
K
Kirill Leventcov
complete
K
Kirill Leventcov
Hi,
I hope you will find the Web Builds section of our documentation useful: https://docs.appgyver.com/docs/web-builds
I will be closing this ticket due to the length of inactivity. In case the issue is still present, please open a new ticket.
Best regards,
Kirill
Kristian Gerkman
planned
Kristian Gerkman
Hey Bruce X, thanks for this - I'll take a closer look tomorrow!
Kristian Gerkman
under review
B
Bruce X
Kristian Gerkman: Hi Kristian , how are you going with his one? Is there any more info you need from me?
BruceX
Kristian Gerkman
Bruce X: Hey BruceX! I did find some weirdness with the windows server, the most important thing that I found out was that the downloaded AppGyver app needs to be the root folder of you website (unlike what I first tried
wwwroot
as the root and then wwwroot/appgyver-app
as a path on the site - i.e. http://yourhostname:port
needs to be the app, it cannot be http://yourhostname:port/appgyver-app
) This is for the reason that the server can not access any files that are not in the root folder. Meaning that all of the CSS and JS files are NOT included. And the files not being included leads to logic and/or styling malfunctions.B
Bruce X
Kristian Gerkman: Hi Kristian, worked beautifully. I did some more experiments and it will not work if you simply double click index.html, but works great if you use localhost.
B
Bruce X
Hi Kristian
Your answer did work beautifully, but...it seems to me that it is important that the web-app does work properly in the sub-folder.
If it can only work in the wwwroot folder then I can only have 1 web-app at a time on my lappy, or anywhere else eg a Web hosting site. Are there any plans to make a web-app work in a sub-folder of wwwroot?? I would suspect that the relative paths in the web-app can be adjusted by the appgyver builder to search for the CSS and JS in the subfolder and if not found, to then search in wwwroot.
Kind Regards
BruceX
B
Bruce X
Hi Kristian
I have found only the highlighted files (see below) need to be in wwwroot. Then the webapp will run successfully from the sub-folder.
Maybe this list can be cut down more.
If these files are common for every appgyver webapp, then that would be ok, but if any of them differ for different appgyver webapps, then that needs to be identified and fixed.
Kind Regards
BruceX
