-
-
Notifications
You must be signed in to change notification settings - Fork 757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add web.config for IIS deployment of the client #805
base: master
Are you sure you want to change the base?
Conversation
Hi! Thanks for your PR 🙏 I'll be sure to check it out as soon as I get back from vacation. Sorry for the delay. |
I'm trying to test, getting Also interested in compatibility with the current version as |
Currently studying why the build worked on my linux and not in my windows. About docker, I haven't checked, I'll investigate that. |
Ok, my head is back ;-) |
I've setted a few default values in client/.env About your wondering for |
Thanks for the fixes 🙏
I'm just worried that someone might already be using Please correct me if I'm wrong. |
Ok, I see your goal. First, you have to know that |
I've managed to make the web.config path independent : It lightens the build process. Though, I can't see a way to prevent to have the right folder in the index.html after the build. To keep current installation running, I propose to make a new build:iis script in package.json. What do you think about that? |
I'm trying to figure out what web.config is, as far as I understand it's something like .htaccess for Apache. The |
You're right that the web.config is a kind of .htaccess for IIS. In the same way, we may have to include .htaccess file. |
Sure, please include it :) |
I've added the specific build for IIS and Apache If it's ok for you, I squash all commits |
I amd sorry, but I have to intervene at this point. Including things concerning Microsoft platform as part of the sourcecode - ESPECIALLY things concerning IIS - is a very bad idea. I'm working with microsoft servers for many years and if I learned one thing that is - there will be trouble because there always is - one day it will work - the next day it won't. Some seperate documentation for people who want to work with IIS? Be my guest. But we will refuse plain and simple any kind of support for microsoft as a platform now and in the future - no matter in which version. IIS is a bug riding on a deranged horse which thinks it's stable until it breaks down. Been there, done that. |
I'm afraid this is more a point of view than a factual problem with planka on IIS. I regularly work with IIS on Windows and Apache on Linux, and I have to say that both works fine if it is correctly used and coded. Anyway, I'm not here to force anyone for this PR. |
7e0a197
to
a7c126c
Compare
This merge request adds the necessary web.config file to deploy the client as static files in IIS (windows).
It also modifies the way the base URL is set in index.html.
Now 3 parameters are set for the client in .env :
REACT_APP_SERVER_BASE_URL : URL to access planka server API
PUBLIC_URL : URL to access planka client (i.e.: where the client is deployed and accessed)
BASE_URL : Base directory of the public URL with an ending /