Add more friendly entry into SimplyCode Docker for new users. #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This MR adds a few changes to make it easier for new users to understand what is going on.
First of all, the
/var/www/www/api/data/generated.html
file missing is not an error, but a warning.In case it is missing the
/simplycode
path is added to the URL shown in the docker output.Secondly, a custom 403 handler is added.
If the path is
/
and/var/www/www/api/data/generated.html
is missing, a custom message is shown which directs the user to/simplycode
.This code is a fisrt working draft, and can be improved upon later.
Finally, the contents of
/var/www/www/api/data
are now always shown, both in the docker output and on the 403 page.This should make it easier to debug what is going on in case of the wrong directory being mounted into the docker container.
These changes can be tested using:
Leave out the
--volume
to emulate a clean install by a new user.